Previous Message
Next Message

Re: [css-d] Dueling pseudoclasses?

Sent by Eric A. Meyer on 29 January 2002 15:03

At 20:28 +0000 1/29/02, Andrew Clover wrote:

>The reason why it isn't working for you is simply a bug in IE and Mozilla -
>a:first-letter just doesn't work, even if the 'a' in question isn't a link.
>It works in Opera.

    Actually, it's a bug in Opera that it has an effect here, and IE 
and NS are right to ignore it.  From CSS2:5.12.2: "The 
':first-letter' pseudo-element matches parts of block-level elements 
only."  'a' is an inline element, unless of course you use 'display' 
to make it block-level.

Eric A. Meyer (, List Chaperone
"CSS is much too interesting and elegant to be not taken seriously."
   -- Martina Kosloff
Previous Message
Next Message

Message thread: