Previous Message
Next Message

Re: [css-d] p:first-child:first-line

Sent by Eric A. Meyer on 11 July 2002 08:08


At 20:22 +0800 7/11/02, Edwardson Tan wrote:

>I tried the following and it works in Moz1.0 but not in IE5.5 nor Opera6
>
>p:first-child:first-line {font-variant: small-caps;}

    That would also work in IE5/Mac.  See 
<http://www.webreview.com/style/css2/charts/selectors.shtml> for a 
summary of browser support for ':first-child' up through early 2001, 
and 
<http://www.westciv.com/style_master/academy/browser_support/selectors 
.html> for a more recent survey (which doesn't seem much different in 
this case).

>I submitted the above to the W3C CSS validator and it validates.

    Yep.  You even remembered to put the pseudo-element after the 
pseudo-class, which I still sometimes forget.

>Any other way of doing this?

    Not with selectors only.  Adding a class would be the only other 
option I can imagine.

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

Message thread: