CSS naming conventions commonly used in web design:
Header: Contents: Content/container tail: Footer navigation: Nav Sidebar: Sidebar column: Column page perimeter control overall layout width: Wrapper around: Left right Center Login: Loginbar Logo: Logo ads: Banner page body: main hotspot: Hot news: News Download: Download sub-navigation: Subnav Menus: Menu submenu: submenu Search: Searching Links: Friendlink footer : Footer Copyright: Copyrights Scroll: Scroll Content: Contents tab: Tab Article list: Tip info: Msg tips: Tips column title: Title join: Joinus Guide: Guild Services: Service registration: Regsiter Status: Status vote: Vote partner: Partner
(b) The wording of the note:
/** / content area / ** /
(c) The name of the ID:
(1) Page structure
Container: Container Header: Header contents: Content/ Container page Body: Main Page end: Footer navigation: Nav Sidebar: Sidebar column: Column page peripheral control overall layout width: Wrapper around: Left right center
(2) Navigation
Navigation: Nav main navigation: mainbav: Subnav Top navigation: Topnav side navigation: Sidebar left navigation: Leftsidebar right navigation: Rightsidebar Menus: Menu submenu: submenu Title: Title Summary: Summary
(3) function
Logo: Logo ads: Banner login: Login login bar: Loginbar Sign up: Regsiter search: Find Ribbon: Shop title: Title join: Joinus Status: Status button: BTN Scroll: Scroll tab: Tab Article list: Lists Hint message: Msg Current tip: Tips icon: Icon Note: Note Guide: Guild services: Service hotspot: Hot news: News Download: Download vote: Vote partners: Partner Links: Link Copyright: Copyrights
(d) Name of class:
(1) Color: Use the name of the color or the 16 code, as shown in
{ color: red;} { color: #f60;} { color: #ff8600;}
(2) Font size, directly using "font+ font size" as the name, as
{ font-size: 12px;} {font-size: 9pt;}
(3) Alignment style, using the English name of the alignment target, such as
{ float:left;} { float:bottom;}
(4) title bar style, named using "Category + function", as
{ }{ }
Precautions::
1. Lowercase;
2. Try to use English;
3. Do not add the middle bar and underline;
4. Try not to abbreviate unless you see the words clearly.
The main master.css
Module MODULE.CSS
Basic shared Base.css
Layout, Layout layout.css
Theme Themes.css
Column Columns.css
Text Font.css
Form Forms.css
Patch Mend.css
Print Print.css
Common CSS Naming conventions