CSS Naming conventions page structure naming
- Page: Represents the entire page for the outermost layer.
- Wrap: A outer package that wraps all the elements together for the outermost
- Wrapper: page perimeter controls overall layout width for outermost
- Container: A whole container for the outermost
- Head, Header: Header area, for head
- Nav: Navigation bar
- Content: Contents, the most important content area of a Web site, for the middle body of a Web page
- Main: Primary area of the site (representing the most important piece of space) for the central body content
- Column: Column
- Sidebar: Side bar
- Foot, footer: page footer, footers. Site some additional information to place the area, (or named copyright) for the bottom
Navigation naming
- Nav, NavBar, navigation, Nav-wrapper: Navigation bar or navigation package, representing landscape navigation
- Topnav: Top Navigation
- MAINBAV: Main navigation
- Subnav: Sub-navigation
- Sidebar: Side navigation
- Leftsidebar or sidebar_a: left navigation
- Rightsidebar or sidebar_b: Right navigation
- Title: Caption
- Summary: Abstract/li>
- Menu: Menus. The area contains general links and menus
- Submenu: Sub-menu
- Drop: Drop down
- Dorpmenu: drop-down menu
- Links: Link Menu
Feature naming
- Logo: Mark logo of website logo
- Banner: Banner, banner, top banner
- Login: login, (e.g. login form: form-login)
- Loginbar: Login Bar
- Regsiter: Register
- Tools, toolbar: tool strips
- Search: Searching
- Searchbar: Search Bar
- Searchlnput: Search Input Box
- Shop: The Ribbon, which represents the current
- Icon: Small icon
- Label: Trademark
- Homepage: Home
- Subpage: Level two page face page
- Hot: Hotspots
- List: article lists, (e.g. News list: List-news)
- Scroll: Scrolling
- Tab: Tab
- Sitemap: Site Map
- MSG or message: Prompt information
- Current: the
- Joinus: Join
- Status: State
- BTN: Button, (for example, Search button can be written as: Btn-search)
- Tips: Tips
- Note: note
- Guild: Guide
- Arr, arrow: Marker arrows
- Service: Services
- Breadcrumb: (That is, where the page is located navigation tips)
- Download: Download
- Vote: Voting
- Siteinfo: Website Information
- PARTNER: Partners
- Link, Friendlink: links
- Copyrights: Copyright Information
- Siteinfocredits: Credibility
- Siteinfolegal: Legal Information
CSS style naming
- The alignment style is named: Left (content on the side), center (middle content), right (content on the side), and so on;
- Color English name: Red (red), green, yellow (yellow), or border_red (red border), etc.;
- color code naming: f00 (red), ff0 (yellow), F90 (orange), etc.;
- Text size naming: font12px (font 12 pixels), font16px (font 16 pixels), etc.;
- Page Line name: line_x (horizontal), line_y (vertical line) or line_red (red), Line_black (Black)
- Image icon Name: pic_1.jpg, pic_2.jpg or Ico_1.gif, ico_2.gif
- Page ad naming: ad_01, ad_02
- Background frame naming: NAV_BG (the position of the background picture representing the navigation bar), TOOL_BG (representing the background image position of the toolbar)
CSS style sheet naming
- INDEX.CSS: Create a style for a separate home page
- Head.css: Head style, multiple page head design style is used simultaneously.
- Base.css: Common style.
- STYLE.CSS: The style file used by the standalone page.
- GLOBAL.CSS: Page style basics, global common styles, pages must contain.
- LAYOUT.CSS: Layout, layout style, common types of use, generally used in the home page and product class pages
- MODULE.CSS: Modules, for product class pages, can also be used in conjunction with other styles.
- MASTER.CSS: The main style sheet
- COLUMNS.CSS: Column Style
- Themes.css: Body Style
- Forms.css: Form Style
- MEND.CSS: Patches, based on the above style of privatization patching.
CSS Naming conventions