I'd suggest reading up on sibling selectors (
http://www.w3.org/TR/REC-CSS2/selector.html#adjacent-selectors,
http://www.456bereastreet.com/archive/200510/css_21_selectors_part_2/). I
believe (someone jump in if I'm giving bad advice), that it could be
accomplished using something like what is below (but I'm really not sure
about that third declaration).

p {
/* style for first */
}

p+p {
/* style for second */
}

p+p+p {
/* style for 3rd on */
}


Zach

On Feb 2, 2008 1:17 PM, Doug Jolley <[EMAIL PROTECTED]> wrote:

> Suppose that I have something like:
>
> <p>One</p>
> <p>Two</p>
> <p>Three</p>
>
> Is there some way (without assigning a class) that I can structure a
> selector so as to select only the second paragraph?  Thanks for any
> input.
>
>       ... doug
> ______________________________________________________________________
> css-discuss [EMAIL PROTECTED]
> http://www.css-discuss.org/mailman/listinfo/css-d
> List wiki/FAQ -- http://css-discuss.incutio.com/
> List policies -- http://css-discuss.org/policies.html
> Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
>
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to