James,
It depends on the site size and the structure. If you have a huge CSS
file for navigation
it is of course good to separate it from other styles.
I always make form.css for contact pages and form pages, but in general
i keep style.css
for the rest ad my sites are not so huge, something up to 100 pages..
Michael
James Jeffery wrote:
There really needs to be a consistent method of sturucturing CSS
personally.
If i cram everything onto one file I feel like the structure of the
website is not really effective and editing becomes a task. Most the
time I will break up the CSS file into a few sections as standard and
use Yahoo!'s reset stylesheet to reset elements. I am not a fan of
framworks and like to invent my own naming conventions.
CSS Structure
---------------------
- Reset.css (Yahoo!)
- Layout.css (positioning, margins, padding etc.)
- Style.css (colours, borders, backgrounds etc.)
- Typography (fonts)
- Base.css (used to @import everything)
I would like to break it up further but I do respect users on slower
Internet connections. In all the CSS files you are usually repeating
selectors which is generating uneeded code, but on the other hand I
have found it useful and easier to edit.
It's really good for bug hunting because when you need to find a bug
thats messing up the layout, you can focus on a single file (most the
time) and narrow down the scope until the bug is eliminated.
I like the idea of a server-side stylesheet joiner. I am going to look
into that.
Keep the replies coming.
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************