Come organizzare i css

CSS — admin @ 10:06

Ipotesi di ottimizzazione nella struttura organizzativa dei CSS:

/*****Reset*****/
Remove margin and padding from elements

/*****Basic Elements*****/
Define styles for basic elements: body, h1-h6, ul, ol, a, p, etc.

/*****Generic Classes*****/
Define styles for simple things like floating to the sides, removing a bottom margin on elements, etc
Yes, these may not be as semantic as we would all like, but they are necessary for coding efficiently

/*****Basic Layout*****/
Define the basic template: header, footer, etc. Elements that help to define the basic layout of the site

/*****Header*****/
Define all elements in the header

/*****Content*****/
Define all elements in the content area

/*****Footer*****/
Define all elements in the footer

/*****Etc*****/
Continue to define the other sections one by one

Da: 5 Ways to Instantly Write Better CSS

0 Comments »

Non c’รจ ancora nessun commento.

RSS feed dei commenti a questo articolo. TrackBack URI

Lascia un commento

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
(c) 2010 Appunti di storie di web | powered by WordPress with Barecity