David Hucklesby wrote:
>>Sadly, I could not get IE to recognize the white-space: pre; I tried 
>>putting it on the LI, even adding "display: block;" to the LI. Nada.
<snip>
> 
> I'd still like to know why so many references agree that IE supports this
> property though. Do they just take Microsoft's word?
> 

Microsoft's own documentation [1] states that:

"pre: Line breaks and other whitespace are preserved. This possible 
value is supported in Microsoft Internet Explorer 6 and later when the 
!DOCTYPE declaration specifies standards-compliant mode."

As the page you link to has a comment at the top for the precise purpose 
of throwing IE 6 into quirks mode, it's not going to work for you.

I would suggest getting the page working in strict mode on all browsers; 
I've never found any good reason to deliberately throw IE into quirks 
mode. I can always get IE to bend to my will by using conditional 
comments [2] to pass on any special treatment it may need (usually just 
something to trigger hasLayout ([3] and [4]) for the odd element here 
and there).

On a more general note, when looking for an explanation of something 
weird in IE (whether CSS, DOM, HTML or proprietary things like 
conditional comments), I find that the MSDN library is a better first 
port of call than Google; although their documentation is often a bit 
lacking, and can be frustrating to find one's way through, there is 
often something there to either put you on the right track, or (as in 
this case) provide the answer. Only when I'm sure MS hasn't covered that 
particular base do I see the need for a more general search. Of course, 
YMMV :-)

[1]<http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/properties/whitespace.asp>
[2]<http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/overview/ccomment_ovw.asp>
[3]<http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/haslayout.asp>
[4]<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ietechcol/cols/dnexpie/expie20050831.asp>

HTH,

Nick.
-- 
Nick Fitzsimons
http://www.nickfitz.co.uk/


______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to