HighDots Forums  

width v. max-width?

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


Discuss width v. max-width? in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
melavids@gmail.com
 
Posts: n/a

Default width v. max-width? - 01-25-2006 , 07:15 PM






Hi --

I found this on a template, along with a warning that IE would ignore
it:

#content { max-width: 36em; }

Assuming that the person who wrote this is much smarter than me, why
this this a better method of limiting line-length than:

#content p { width: 36em; }

Only curious,
Thanks


Reply With Quote
  #2  
Old   
Darin McGrew
 
Posts: n/a

Default Re: width v. max-width? - 01-25-2006 , 07:41 PM






<melavids (AT) gmail (DOT) com> wrote:
Quote:
I found this on a template, along with a warning that IE would ignore
it:

#content { max-width: 36em; }

Assuming that the person who wrote this is much smarter than me, why
this this a better method of limiting line-length than:

#content p { width: 36em; }
What happens when the available display area is less than 36em wide?
--
Darin McGrew, mcgrew (AT) stanfordalumni (DOT) org, http://www.rahul.net/mcgrew/
Web Design Group, darin (AT) htmlhelp (DOT) com, http://www.HTMLHelp.com/

"Good teachers are costly. Bad teachers cost more." - Bob Talbert


Reply With Quote
  #3  
Old   
Viken Karaguesian
 
Posts: n/a

Default Re: width v. max-width? - 01-25-2006 , 09:31 PM



Quote:
I found this on a template, along with a warning that IE would ignore
it:

#content { max-width: 36em; }
IE ignores it because { max-width } is a CSS2 command and IE does not
support CSS2.

--
Viken K.
http://home.comcast.net/~vikenk




Reply With Quote
  #4  
Old   
Spartanicus
 
Posts: n/a

Default Re: width v. max-width? - 01-26-2006 , 02:31 AM



"Viken Karaguesian" <vikenkNO_SPAM (AT) NO_SPAMcomcast (DOT) net> wrote:

Quote:
IE does not support CSS2.
Too sweeping a statement, IE supports some CSS2.

--
Spartanicus


Reply With Quote
  #5  
Old   
Viken Karaguesian
 
Posts: n/a

Default Re: width v. max-width? - 01-26-2006 , 07:06 AM




Spartanicus wrote:
Quote:
"Viken Karaguesian" <vikenkNO_SPAM (AT) NO_SPAMcomcast (DOT) net> wrote:

IE does not support CSS2.

Too sweeping a statement, IE supports some CSS2.
Maybe I should have said "IE does not support CSS2 *well*" :>)

Viken K.



Reply With Quote
  #6  
Old   
melavids@gmail.com
 
Posts: n/a

Default Re: width v. max-width? - 01-26-2006 , 08:37 AM



Quote:
What happens when the available display area is less than 36em wide?
--
Okay, that's a good reason. Gotcha, thanks.



Reply With Quote
  #7  
Old   
Chris Beall
 
Posts: n/a

Default Re: width v. max-width? - 01-26-2006 , 02:21 PM



Viken Karaguesian wrote:

Quote:
Spartanicus wrote:

"Viken Karaguesian" <vikenkNO_SPAM (AT) NO_SPAMcomcast (DOT) net> wrote:


IE does not support CSS2.

Too sweeping a statement, IE supports some CSS2.


Maybe I should have said "IE does not support CSS2 *well*" :>)

Viken K.

Viken,

Too narrow a statement. IE doesn't support anything well. :-)

(Actually, I rather like it for FTP, which it seems to handle flawlessly...)

Chris Beall



Reply With Quote
  #8  
Old   
Jasen Betts
 
Posts: n/a

Default Re: width v. max-width? - 01-27-2006 , 01:15 AM



On 2006-01-26, Chris Beall <Chris_Beall (AT) prodigy (DOT) net> wrote:

Quote:
Too narrow a statement. IE doesn't support anything well. :-)

(Actually, I rather like it for FTP, which it seems to handle flawlessly...)
It doesn't support text mode.

Bye.
Jasen


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 - 2008, Jelsoft Enterprises Ltd.