Page is a not externally linkable
- Code, Content, and Presentation
-- CSS
---- CSS Crib Sheet, cheatsheets, shortcut lists, syntax lists, & others


Wrapdida - 10:56 pm on Sep 15, 2004 (gmt 0)


To answer SuzyUK :)

"Not sure I'm a fan of this idea, unless it's a personal site that you understand where you've put everything ... I would think that maybe globallayout.css, then everythingelse.css.. but separating colors and fonts hmm.

Grouping selectors saves so much more time and space, and the cascade is easier to read if the whole elements CSS is in one place? "

I prefer to separate layout, font and color in 3 different sheets. Here's an example but it might particularly only work for me. You can try and experiment if it’s workable? Hehe /wink

For example I'd like to reduce the width of one of my blocks with the id/class="Box1". I know all width and /gasp height properties would all be in layout.css. I'll just go to layout.css and find the id. I'd just take a glimpse and I know exactly which one it is. Now if I had a globalall.css, I'll have to find the width property of id/class="Box1" married with all the color and border and list properties, etc. To me, it's like sorting laundry. The whites separated from the lights and the darks. This reminds me, I better finish my laundry. ;p

With regards to CSS editors, I find StyleMaster supports well or works nicely with having 3 different css for a page (switching tabs for each css file is a breeze) but cumbersome in DWmx2004 and with Bbedit or Notepad.

I hope I expounded better but in no way am I claiming that it is the absolute right way to do it. :)


Thread source:: http://www.webmasterworld.com/css/4514.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com