Previous Message
Next Message

Re: [css-d] question about selectors

Sent by Eric A. Meyer on 29 January 2002 16:04


At 15:26 -0600 1/29/02, Austin Govella wrote:
>i'm just trying to get a handle on selectors and want to know if i 
>have this right.

 From the SelectORacle <http://gallery.theopalgroup.com/selectoracle/>:


Selector 1: div#content > p:first-child
    Selects any p element that is a first child that is a child of a 
div element with an id attribute that equals content.

Selector 2: div#content > h1 + p
    Selects any p element that immediately follows a h1 element that 
is a child of a div element with an id attribute that equals content.


In all fairness, the oracle's results are quite a bit easier to read 
than this plain-text copy of them.

--
Eric A. Meyer (http://www.meyerweb.com/eric/), List Chaperone
"CSS is much too interesting and elegant to be not taken seriously."
   -- Martina Kosloff
Previous Message
Next Message

Message thread: