When I say logical I really mean it. sorry.
I’m getting now.
Btw, is it like this that you gurus normally do it?
Do you apply a class of each body element and that element will have only the differences on a specific page class?
I see. I will need to create a layout on a mvc structure, and of course have some views etc… and the way we organize the css should play a role yes?.
The idea of organization given here seems to be quite interesting.
I do this a lot, but only if it’s needed. Mind you, I use this technique on most sites because it’s handy for getting a page’s menu link to be highlighted when you are on that page… so it has multiple uses.
(I thought I’d answer this question, even though you directed it to “gurus”! )
Heh heh, “MVC structure”, “views”? We don’t speak that language here in the CSS forum. I’m not sure if MVC and CSS are logically linked (I’ve only dipped the tip of my toe into PHP frameworks), but certainly CSS plays a role in how you organize things.
It’s the safeste way. You could give the #container element a class instead of the body and reference it via #container.home{} but IE6 is buggy with that and it’s best to identify pages via a class on the body.