Previous Message
Next Message

RE: [css-d] Workaround for MSIE bug with p+p?

Sent by Saila, Craig on 22 July 2002 11:11


> -----Original Message-----
> From: Kiera Wooley [EMAIL-REMOVED]] 
> Sent: July 22, 2002 11:44 AM

> there any known workarounds, short of 
> multiple ugly   entities for each paragraph I want to be 
> indented?

You could try something like like this:
 /* for IE/Win */
 P { text-indent: 1.5em; }
 P.noindent { text-indent: 0; }
 /* for IE5/Mac, Moz, Opera */
 HTML>BODY P { text-indent: 0; }
 HTML>BODY P+P { text-indent: 1.5em; }
and then, whenever you *don't* want to have a paragraph indent, use the
"noindent" class. 

The HTML>BODY selector will allow compliant browsers to apply the rules
as they should be, but IE/Win will ignore them.

-- 
Cheers,

Craig Saila
------------------------------------------
[EMAIL-REMOVED] : http://www.saila.com/
------------------------------------------
Previous Message
Next Message

Message thread:

Possibly related: