Previous Message
Next Message

[css-d] question about selectors

Sent by Austin Govella on 29 January 2002 16:04


i'm just trying to get a handle on selectors and want to know if i have 
this right.

if i have a page without a h1, and i want the first line of the first 
paragraph to be bold, then:

div#content > p:first-child {font-weight:bold;}



and if i want the first p on a page that has a h1 to be normal:

div#content > h1 + p {font-weight:normal;)



is that right?



--
Austin
Previous Message
Next Message

Message thread: