Beginner to DIV CSS? There are six questions that require your attention! As a beginner of DIV CSS, if you have a clear understanding of the overall structure of the web page before writing code, you will get twice the result with half the effort! However, there are always problems of one kind or another during the writing process, which makes us have to stop and look up information, clarify attribute definitions, etc.!
In fact, there are many ways to improve my efficiency while giving us a deeper understanding of DIC CSS! Below we list a few points:
1. CSS naming convention:
1. File naming convention
Global style: global.css;
Frame layout: layout.css;
Font Style: font.css;
Link style: link.css;
Print style: print.css;
2. Common class/ID naming conventions
Header: header
Content: content
Container: container
Footer: footer
Copyright: copyright
Navigation: menu
Main navigation: mainMenu
Sub-navigation: subMenu
Logo: logo
Slogan: banner
Title: title
Sidebar: sidebar
Icon: Icon
Note: note
Search: search
Button: btn
Login: login
Link: link
Information box: manage
…
2. Dealing with browser BUG issues
Regarding this point, I wonder if that expert turned CSS BUG into a jingle! Quote it here, it’s easy to remember!
1. If the IE border appears or disappears, please note that the height setting must have been forgotten;
2. There is a reason why the float is generated. If the parent layer wants to contain it, the float must be cleared immediately, and the container will naturally appear in it;
3. Don’t panic when moving three-pixel text slowly, the height setting will help you;
4. Please note that it is compatible with various browsers. The default setting of line height may be a killer;
5. Remember to clear floats independently. No high-end design, no high-end design, design effect and browsing;
6. Learning layout requires thinking, the path is natural and straight with the layout principle, easy to control HTML, streamlined layout with less hacks, clean code, good compatibility, friendly engines like to welcome.
3. All tags are active
It’s just that the default is different, span is Wuji, Wuji produces two forms? Inline and block level, img is special, but it also follows the legal principles, the others are just different modifications , a * sign will all return to the original, the layering style requires more practice, everything is regular.
4. Be careful with image link typesetting
If the image link text link is aligned, padding and vertical-align:middle must be set. It doesn’t matter if the difference is slight.
5. IE floating double margins
Please use display: inline. And artificial flowers manufacturers
6. Horizontal layout of the list
The list codes must be close together, and the gaps must be remembered.
DIC CSS learning is a long road, and you must have a pious new heart to truly follow it!

The official account web page update cache, this thing is simple and simple, and it is complicated enough to drink a pot of it. You worked hard to update the official account article, but the user still opened the old version. Who can bear the taste? In this article, let’s take a look at the twists and turns behind this and how to solve this problem gracefully. After reading it, you can easily deal with various caching problems, allowing your users to always experience the freshest content. Let’s talk about the basics first. To put it bluntly, in order to improve access speed, the browser or server stores some static resources (such as pictures, CSS, JS) or page content. Next time you access it, you can directly retrieve it from the cache without having to download it again, and it is naturally fast. But this thing is also a double-edged sword. The new version is online,

This article demonstrates efficient PNG border addition to webpages using CSS. It argues that CSS offers superior performance compared to JavaScript or libraries, detailing how to adjust border width, style, and color for subtle or prominent effect

The article discusses the HTML <datalist> element, which enhances forms by providing autocomplete suggestions, improving user experience and reducing errors.Character count: 159

The article discusses using HTML5 form validation attributes like required, pattern, min, max, and length limits to validate user input directly in the browser.

Article discusses best practices for ensuring HTML5 cross-browser compatibility, focusing on feature detection, progressive enhancement, and testing methods.

The article discusses the HTML <progress> element, its purpose, styling, and differences from the <meter> element. The main focus is on using <progress> for task completion and <meter> for stati

The article discusses the HTML <meter> element, used for displaying scalar or fractional values within a range, and its common applications in web development. It differentiates <meter> from <progress> and ex

This article explains the HTML5 <time> element for semantic date/time representation. It emphasizes the importance of the datetime attribute for machine readability (ISO 8601 format) alongside human-readable text, boosting accessibilit


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

Dreamweaver Mac version
Visual web development tools

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

Atom editor mac version download
The most popular open source editor

SublimeText3 Linux new version
SublimeText3 Linux latest version
