Re: [css-d] IE6 supports white-space: pre; Not.

2006-04-24 Thread David Hucklesby
> David Hucklesby wrote:
>> ... I wonder if IE 7 will behave like IE 5 with a comment before the 
DOCTYPE?
>> 
On Mon, 24 Apr 2006 21:35:19 +0200, Ingo Chao replied:
> 
> see
> http://www.satzansatz.de/cssd/quirksmode.html
> 
Brilliant! Thanks for that, Ingo.

"Never do today what you can put off until tomorrow." Or something like 
that.

Cordially,
David
-- 
David Hucklesby, on 4/24/2006

--



__
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/


Re: [css-d] IE6 supports white-space: pre; Not.

2006-04-24 Thread Ingo Chao
David Hucklesby wrote:
> ... I wonder if IE 7 will behave like IE 5 with a comment before the DOCTYPE?
> 

see
http://www.satzansatz.de/cssd/quirksmode.html

Ingo

-- 
http://www.satzansatz.de/css.html
__
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/


Re: [css-d] IE6 supports white-space: pre; Not.

2006-04-24 Thread David Hucklesby
> David Hucklesby wrote:
>>>Sadly, I could not get IE to recognize the white-space: pre;

On Mon, 24 Apr 2006 03:05:04 +0100, Nick Fitzsimons replied:

> 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.

Ahh! Thanks for the enlightenment, Nick.

> 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.

Well, my "good reason" is laziness. I do give IE 5/6 Windows an extra 
stylesheet, I just did not want to do separate ones for IE5 and IE6.
Until a short while ago I was making separate style sheets for IE 5 Mac, 
IE 5.01 Win, IE 5.5 Win, and IE 6 Win, with possible variants for print 
styles as well. I got fed up with all that extra work for one company's 
browser, and hit on the idea of using quirks mode.

I wonder if IE 7 will behave like IE 5 with a comment before the DOCTYPE?

Cordially,
David
-- 
David Hucklesby, on 4/24/2006

--



__
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/


Re: [css-d] IE6 supports white-space: pre; Not.

2006-04-23 Thread Nick Fitzsimons
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.

> 
> 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]
[2]
[3]
[4]

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/


Re: [css-d] IE6 supports white-space: pre; Not.

2006-04-23 Thread David Hucklesby
> On 21.04.2006 07:17, David Hucklesby wrote:
>> I am using an ordered list to display some code, like this:
>> 
>> HTML
>>  ...(some escaped HTML or CSS) ...
>> CSS
>> ol {margin-left: 2em;}
>> code {
>>font: 100%/1 "Lucida Console", "American Typewriter", "Courier
New",
>> Courier, monospace;
>>white-space: pre;
>> }
>> 

On Sun, 23 Apr 2006 10:25:49 +0200, Uwe Kaiser replied:
> 
> You could try: "white-space: nowrap;" to achieve your goal.
> 

Thanks for the suggestion, Uwe. Sadly, IE then ignores "overflow: auto"
and expands the code block and the container along with it, destroying
the entire layout! Besides, I had hoped to display the code's indentation
as well, as other browsers do.

I think I'll stick with what I have, since IE does render it legibly, if
not as pretty as I would like.

I'd still like to know why so many references agree that IE supports this
property though. Do they just take Microsoft's word?

Cordially,
David
--
David Hucklesby, on 4/23/2006

--





__
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/


[css-d] IE6 supports white-space: pre; Not.

2006-04-20 Thread David Hucklesby
I am using an ordered list to display some code, like this:

HTML
 ...(some escaped HTML or CSS) ...
CSS
ol {margin-left: 2em;}
code {
   font: 100%/1 "Lucida Console", "American Typewriter", "Courier New", 
Courier, monospace;
   white-space: pre;
}

Implemented here: 

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.

Googling for "css support white-space pre ie internet explorer" and 
checking the first dozen relevant hits, all references claimed IE 
"supports" or "fully supports" white-space: pre.

What am I missing?

Cordially,
David
-- 
David Hucklesby, on 4/20/2006

--



__
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/