Sent by Bjoern Hoehrmann on 12 July 2002 15:03
* Verdon Vaillancourt wrote:
>>> .boxHead>h1,h2,h3 { margin: 0 0 2px 5px; }
>>> .boxSubHead>h1,h2,h3 { margin: 0 0 2px 0px; }
>>
>> You know this selects h1 children of elements
>> with class boxHead and h2 elements and h3 elements?
>>
>No I didn't! I meant to select h1, h2 & h3 children of elements with class
>boxhead :-0
Remember, using the comma seperates simple selector sequences, writing
h1, h2, h3 { ... }
is just like writing
h1 { ... }
h2 { ... }
h3 { ... }
As of the current state of CSS Level 3, there is no means of grouping
selectors the way you like to, you have to go like
.boxHead > h1,
.boxHead > h2,
.boxHead > h3 { ... }
admittedly a little verbose...