Previous Message
Next Message

Re: [css-d] best practice for inventing styles

Sent by Rijk van Geijtenbeek on 31 January 2002 14:02

On Thursday, January 31, 2002, Bill wrote:

BB> My bigger question is: what is the most accepted/standard/professional way
BB> to create styles? I tend to use HTML elements first to cover "default"
BB> styles, and then get more specific with various classes, then IDs if
BB> necessary. Very few subclasses. But when I see style sheets with lots of
BB> DIVs and SPANs, I worry that I may be missing something.

IMO, you take the correct approach. But if you have several DIVs, one
for the header, one for a sidebar, one for a footer, one for a pullout
quote, etc, which need to have a distinctive look, you need classes to
select them in your stylesheet. 

 Rijk                            [EMAIL-REMOVED]

Mot du Jour:
Any fool can criticize, condemn, & complain. And most do.
Previous Message
Next Message

Message thread: