Previous Message
Next Message

Re: [css-d] noobie question about conventions

Sent by Joe Howley on 5 January 2003 19:07


> In Mozilla at least (the rest are untested):
> 
>     p.example { font-size: 1em; }
> 
> is different from
> 
>     p .example { font-size: 1em; }
> 
> 
> That extra space apparently isn't allowed and threw me off for a long 
> time the first time it happened...
> 

It's allowed, but it doesn't mean the same thing.  The former points to
any P of class "example," while the latter points to all elements of
class "example" that are within a P element.  I know, details, details :)

Cheers,
===
joe howley
http://joe.sameperson.net/
Previous Message
Next Message

Possibly related: