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.