In css should I 'name' my page at the top level - like this :
<div class="page_products">
in order to write css specific to that page like this :
.page_products h3 {
font-color:red;
}
Note: This is a completely random and probably not useful style override. H3 is the first thing that came into my head. I'm just trying to describe the practice.
I've seen a few places where this kind of practice is described - including one answer to one of my other posts, and I kinda think its horrible. I'd much rather override in a <style>
tag at the top of my page or create a second .css file (less likely). But then if I look at it another way it is very appealing and I'm tempted to use it.
What do others think of this practice. It looks scarily unmaintainable to me. What are the advantages or pitfalls?
Additional point: I may also be trying to write a .css file specific for a 'iPhone' version too - and a little worried that multiple css files for that could get really clumsy to manage.