Friday, March 9, 2012

CSS Class - Small Business Branding

To format the items on the web-page, web-masters create the class names and id which identifies containers. Css properties of selectors must match the properties of the XHTML tags to which they are intended, but class names and identifiers depend only on the web-master, creating these classes. However, when choosing class names and identifiers of web-masters do not have to rely on their ingenuity. Although there is no clear rules for class names and id, there is still a number of recommendations aimed at achieving the structuring of names to reduce confusion. In this article we will consider these recommendations as well as to see what kinds of divided in the name of css. Denoting the location. When you create Web-pages to determine the names of containers on the page showing the location of the container. Here is a very good name classes: top-panel horizontal-nav left-side center-column right-col all these names are valid for use in CSS and XHTML.

They are simple and clearly describe the location of the container and carry out their mission - to identify a page element. The main problem of such names is that they link the position of layout on the page and may be inappropriate and confusing if the item is placed elsewhere on the page. Structural (describing the action). Structural class names are in order to describe the action for which it was intended container. branding main-nav subnav main-content sidebar These names are no less clear than identifying the location. But in contrast to designate the location, structure names describe the action class, rather than location. Structural representation of names of classes eliminates the mess, if you change the position of the container, since they are not associated with a location on the page. Common names. After analyzing the names of CSS large number of sites, we chose the names that are very often found in different sites. Here are the most common names of the classes: header content nav sidebar sidebar can say with certainty that these names have become a kind of 'standard class names' Applying as these names can be found on virtually all modern Web sites. It is very difficult to overestimate the importance of the common names of classes, since the use of standardized names easier to find and update common elements across sites that allows you to create an established framework for building Web sites.

Source: http://smallbusinessbranding.typepad.com/blog/2012/03/css-class.html

lottery winning numbers pro bowl roster quirky chrissy teigen chia seeds embers metta

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.