Common CSS Naming conventions

Source: Internet
Author: User
Tags print print

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

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.