Div + CSS naming rules
Common CSS naming rules:
Header: Header Content: Content/Container Tail: Footer Navigation: NAV Sidebar: Sidebar
Topic: Column Overall Layout width of the page peripheral control: Wrapper Middle left and right: Left right center
Logon entry: Loginbar Flag:Logo Advertisement: Banner Page subject: Main Hotspot: Hot
News: News Download: Download Sub-Navigation: Subnav Menu: Menu
Sub menu: Submenu Search: Search Links: Friendlink Footer:Footer
Copyright: Copyright Scroll: Scroll Content: Content Tab: Tab
Article List: List Prompt message: MSG TIPS: Tips Topic title: Title
Join: Joinus Guide:Guild Service: Service Registration: Regsiter
Status: Status Vote: Vote Partners: Partner
(2) Comment writing:
/* Footer */
Content Area
/* End footer */
(3) ID name:
(1) Page Structure
Container: Container Page header: Header Content:Content/Container
Page subject: Main Footer: Footer Navigation: NAV
Sidebar: Sidebar Topic: Column Overall Layout width of the page peripheral control: Wrapper
Middle left and right: Left right center
(2) Navigation
Navigation: NAV Main Navigation: Mainbav Sub-Navigation: Subnav
Top Navigation: Topnav Side Navigation: Sidebar Left Navigation: Leftsidebar
Right Navigation: Rightsidebar Menu: Menu Sub menu: Submenu
Title: Title Abstract: Summary
(3) Functions
Flag: Logo Advertisement: Banner Login: Login Logon entry: Loginbar
Registration: Regsiter Search: Search Functional Area: Shop
Title: Title Join: Joinus Status: Status Button: BTN
Scroll:Scroll Tab: Tab Article list: Li St Prompt message: M SG
Current: Current TIPS: Tips Icon: Icon Note: Note
Guide: Guild Service: Service Hotspot: Hot News: News
Download: Download Vote: Vote Partners: Partner
Link copyright: Copyright
(4) Class naming:
(1) color: use the color name or hexadecimal Code , Such
. Red {color: red ;}
. F60 {color: # f60 ;}
. Ff8600 {color: # ff8600 ;}
(2) font size: Use 'font + font size' as the name, as shown in figure
. Font12px {font-size: 12px ;}
. Font9pt {font-size: 9pt ;}
(3) alignment style. Use the English name of the alignment target, as shown in figure
. Left {float: Left ;}
. Bottom {float: bottom ;}
(4) use the 'category + function' method to name the title bar style, as shown in figure
. Barnews {}
. Barproduct {}
Note ::
1. All are in lower case;
2. Try to use English;
3. Do not add hyphens or underscores;
4. Try not to be abbreviated, except words that can be understood without looking at them.
The main master.css module module.css basically shares base.css
Layout.css themes.css column columns.css
Text font.css form forms.css patch mend.css print print.css