2 ms·
ySlow recommends at most 3 stylesheets, and with good reason: the HTML headers and request times can drastically slow a site down. By simply organizing the str
by pippy 16y ago
ySlow recommends at most 3 stylesheets, and with good reason: the HTML headers and request times can drastically slow a site down.
By simply organizing the structure of the file well, you can have a easy to navigate css file. Of course there may be a few extra style sheets; ie.css, section specific.css, print.css and mobile.css.
Here's my CSS file structure:
-reset
-html tags h1,p,q etc
-header
-navigation
-content
-sidebar
-misc (popups, forms, buttons)
-footer
- elliottkember 16y agoIt's generally a good idea to concatenate your stylesheets for production - doesn't mean you have to write them as one big file, though.