Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old October 5th, 2008, 03:45 PM
Stan Brown
Guest
 
Posts: n/a
Default I'm just stunned

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
  #2  
Old October 5th, 2008, 06:15 PM
Jukka K. Korpela
Guest
 
Posts: n/a
Default Support to max-width in IE

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/

  #3  
Old October 6th, 2008, 02:15 PM
David Stone
Guest
 
Posts: n/a
Default Re: Support to max-width in IE

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.
  #4  
Old October 7th, 2008, 12:05 AM
Stan Brown
Guest
 
Posts: n/a
Default Re: Support for max-width in IE

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
 

Bookmarks

Thread Tools

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

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles