CSS Structure
I found this an interesting read, and mainly because I love to see how others put their CSS together. I have been working in CSS for a few years now, and have had my fair share of ugly stylesheets. This article gives great insight into organizing your stylesheets. I find that I tend to organize them in the same manner because I am primarily a programmer — so it only seems to make sense to me.
I found this quote interesting, as I find myself doing the same thing:
I always write the XHTML/CSS for my own designs because I can just look at it and see the XHTML/CSS in my head. I can see how the structure will be laid out, which areas will be blocked off, how navigation will be coded, etc.
Yes, one of the great things about CSS is its portability and re-use, but I still find myself making a new “shell” for new projects. It helps me to visually lay out all elements and placements.
The beauty of this is how you work within the XHTML to get your visual representation. I have seen many people simply remove tags and replace them with ID’s or classes, where he makes the great point of using your XHTML tags — only spicing them up. Take a look at some of those pages with CSS turned off, you still have all the necessary elements in place.