Smart CSS Ain’t Always Sexy CSS : Comments
July 15, 2008
I have to say, I have been slowly moving towards this way of thinking (cautiously) since working on very large sites. My personal is small enough to keep semantic naming conventions but once you start developing 800+ page sites those semantics can become meaningless and very difficult to manage/extend as you build.
Also, in the past before so many sites used CMS templates, updating the html was a pretty big task. Now, you simply update one file that is included globally.
One technique I have been using lately is to give an element a structural/presentational name as well as a semantic modifier:
<div id=“navigation” class=“horizontal”>
This has really helped to keep the CSS simple.