DIV+CSS Naming conventions

Source: Internet
Author: User

Common CSS Naming conventions:

Header: Header content: Content/container Tail: Footer navigation: Nav Sidebar: Sidebar
Column: Column page perimeter control overall layout width: wrapper: Left Right Center
Login: Loginbar Logo: Logo ads: Banner page body: main
Hotspot: Hot
News Download: Download sub-navigation: Subnav: Menu
Submenu: submenu: Search Links: Friendlink footer: Footer
Copyright: Copyrights Scrolling: Scroll Contents: Content tab: Tab
Article List: Listing tips: Msg tips: Tips column title: Title
Join: Joinus Guide: Guild Services: Service registration: Regsiter
State: Status vote: Vote partner: Partner
(b) The wording of the note:
/* Footer */
Content Area
/* End Footer */
(c) The name of the ID:
(1) Page structure
Container: Container Header: Header content: Content/container
Page body: Main Page end: Footer Navigation: Nav
Sidebar: Sidebar column: Column page perimeter control overall layout width: Wrapper
Middle: Left Right center
(2) Navigation
Navigation: Nav Main navigation: Mainbav sub-nav: Subnav
Top navigation: Topnav side navigation: Sidebar left navigation: Leftsidebar
Right navigation: Rightsidebar: Menu submenu: Submenu
Title: Title Abstract: summary
(3) function
Logo: Logo ads: Banner login: Login Login: Loginbar
Registration: Regsiter Search: Searching Ribbon: Shop
Title: Title Join: Joinus Status: State button: BTN
Scrolling: Scroll tab: Tab Article list: Listing tip information: Msg
Present: Current Tips: Tips icon: Icon Note: note
Guide: Guild Services: Service hotspot: Hot NEWS: News
Download: Download vote: Vote partner: Partner
Links: Link Copyrights: Copyright
(d) Name of class:
(1) Color: Use the name of the color or the 16 code, as shown in
. red {color:red;}
. F60 {color: #f60;}
. ff8600 {color: #ff8600;}
(2) Font size, directly using ' font+ font size ' as the name, as
. font12px {font-size:12px;}
. font9pt {font-size:9pt;}
(3) Alignment style, using the English name of the alignment target, such as
. left {float:left;}
. bottom {float:bottom;}
(4) title bar style, using the ' category + function ' way to name, such as
. Barnews {}
. barproduct {}
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 Common Base.css
Layout, layout layout.css theme themes.css column Columns.css
Text font.css form forms.css patch mend.css print print.css

DIV+CSS Naming conventions

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.