HighDots Forums  

I'm just stunned

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss I'm just stunned in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Stan Brown
 
Posts: n/a

Default I'm just stunned - 10-05-2008 , 10:36 AM






Okay, so FINALLY I got around to putting a max-width in the header of
one page, wrapped in @media screen so that printing is still full
width.

After being amazed at how much harder it was to read the same page in
full-screen than in 50em,(*) I thought I'd see whether IE6 could
handle the @media tag. Not much of a surprise: the page was still
full width in IE6. So I tried it in my screen-only style sheet, and
to my amazement that didn't work either.

Thirty seconds on W3schools told me that IE doesn't support max-
width. I know I shouldn't have been surprised, but I am. This isn't
something hard like the box model, this is dead easy stuff, and IE
ignores it. I'm just stunned.

(I did a bit of googling for hacks, but I have no intention of adding
pseudo-javascript like "expression" to my CSS just to make IE happy.
I'm adding an unvarnished max-width to CSS as soon as I make the next
update.)

(*) 50em might still be a bit too wide, but the Web site I make for
my classes has a fair number of screen shots and I don't want to get
too narrow.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/2003/05/05/why_we_wont_help_you

Reply With Quote
  #2  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Support to max-width in IE - 10-05-2008 , 01:10 PM






Under Subject: I'm just stunned
Stan Brown wrote:

Quote:
Thirty seconds on W3schools told me that IE doesn't support
max-width.
Well, this time the information was correct if you realize that this applies
to
- IE 6 and earlier and
- IE 7 in Quirks Mode.
But W3schools is generally unreliable, and it is better to use other
resources, such as
http://www.quirksmode.org/css/contents.html
for CSS support in browsers.

--
Yucca, http://www.cs.tut.fi/~jkorpela/



Reply With Quote
  #3  
Old   
David Stone
 
Posts: n/a

Default Re: Support to max-width in IE - 10-06-2008 , 09:08 AM



In article <hz6Gk.76250$_03.32730 (AT) reader1 (DOT) news.saunalahti.fi>,
"Jukka K. Korpela" <jkorpela (AT) cs (DOT) tut.fi> wrote:

Quote:
Under Subject: I'm just stunned
Stan Brown wrote:

Thirty seconds on W3schools told me that IE doesn't support
max-width.

Well, this time the information was correct if you realize that this applies
to
- IE 6 and earlier and
- IE 7 in Quirks Mode.
The Ruthsarian menu system includes javascript functions to implement
min-width under such circumstances. According to the source file, it
comes from here:

http://www.projectseven.com/tutorials/css/minwidth/

I would think someone must already have worked out how to do max-width
using the same basic approach!

I include the necessary script stuff inside an IE conditional comment,
as its the only JS on my pages.

Quote:
But W3schools is generally unreliable, and it is better to use other
resources, such as
http://www.quirksmode.org/css/contents.html
for CSS support in browsers.

Reply With Quote
  #4  
Old   
Stan Brown
 
Posts: n/a

Default Re: Support for max-width in IE - 10-06-2008 , 07:01 PM



Sun, 5 Oct 2008 20:10:55 +0300 from Jukka K. Korpela
<jkorpela (AT) cs (DOT) tut.fi>:
..
Quote:
But W3schools is generally unreliable, and it is better to use other
resources, such as
http://www.quirksmode.org/css/contents.html
for CSS support in browsers.

So noted; thanks!

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/2003/05/05/why_we_wont_help_you


Reply With Quote
  #5  
Old   
dhtml
 
Posts: n/a

Default Re: Support to max-width in IE - 12-14-2008 , 02:59 AM



Jukka K. Korpela wrote:
Quote:
Under Subject: I'm just stunned
Stan Brown wrote:

Thirty seconds on W3schools told me that IE doesn't support
max-width.

Well, this time the information was correct if you realize that this
applies to
- IE 6 and earlier and
- IE 7 in Quirks Mode.
But W3schools is generally unreliable,
Yes.

Quote:
and it is better to use other
I suppose there are worse. Maybe About.com.

Quote:
resources, such as
http://www.quirksmode.org/css/contents.html
That page reads:
"Multiple classes", says "yes" for IE6.

It is fairly common knowledge that IE6 does not properly support
multiple classes.

Garrett


--
comp.lang.javascript FAQ <URL: http://jibbering.com/faq/ >


Reply With Quote
  #6  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Support to multiple classes in IE 6 - 12-14-2008 , 04:37 AM



Under Re: Support to max-width in IE
dhtml wrote:

Quote:
resources, such as
http://www.quirksmode.org/css/contents.html
Generally, when you re-open a discussion that ended two months ago, it's a
good idea to inform readers of this and maybe explain why you are doing
that. Besides, it's a particularly idea to check whether the Subject line
has anything to do with what you are about to say and to change it when
needed (unless you decide to open a new thread, which is often an even
better idea).

Quote:
That page reads:
"Multiple classes", says "yes" for IE6.
Read it again. It says "buggy". And the response headers say
Last-Modified: Tue, 11 Nov 2008 19:24:30 GMT
so this isn't due to a recent fix there.

Quote:
It is fairly common knowledge that IE6 does not properly support
multiple classes.
If you followed to link in the cited resource, pointing to
http://www.quirksmode.org/css/multipleclasses.html
you would see a note about this, in a much more useful formulation than
"does not properly support multiple classes". IE 6 allows you to write
class="foo bar" and implements it but with the bug that p.foo.bar is
effectively treated as p.bar, which is wrong and bad but not a big issue in
practice, since more often you use just p.foo and p.bar. The main use for
multiple classes for an element is to make it possible to apply two or more
sets of declarations to an element, not to have multiple class names in one
selector.

--
Yucca, http://www.cs.tut.fi/~jkorpela/



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.