Connecting Tech Pros Worldwide Forums | Help | Site Map

I'm just stunned

Stan Brown
Guest
 
Posts: n/a
#1: Oct 5 '08
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/200..._wont_help_you

Jukka K. Korpela
Guest
 
Posts: n/a
#2: Oct 5 '08

re: I'm just stunned


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/

David Stone
Guest
 
Posts: n/a
#3: Oct 6 '08

re: I'm just stunned


In article <hz6Gk.76250$_03.32730@reader1.news.saunalahti.fi> ,
"Jukka K. Korpela" <jkorpela@cs.tut.fiwrote:
Quote:
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.
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.
Stan Brown
Guest
 
Posts: n/a
#4: Oct 7 '08

re: I'm just stunned


Sun, 5 Oct 2008 20:10:55 +0300 from Jukka K. Korpela
<jkorpela@cs.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/200..._wont_help_you
Closed Thread