Max-Width in All Browsers

This is a discussion on "Max-Width in All Browsers" within the Web Page Design section. This forum, and the thread "Max-Width in All Browsers are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Closed Thread
 
LinkBack Thread Tools
  #1  
Old May 8th, 2005, 16:44
New Member
Join Date: May 2005
Location: asdf
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Max-Width in All Browsers

I have been doing some research on the max-width property in CSS2 lately. Basically, from my experience it doesn't work in IE or Safari. Given that the great majority of people browsing the internet are using IE, the max-width property is basically useless until Microsoft decides to start complying with the latest standards.

I have come across one interesting idea (here) for setting the maximum width in IE, but this doesn't seem to be compliant with the latest CSS standards, and it doesn't seem to work in Safari. Does anyone know of any way to set the maximum width of a table or other element in such a way that it will work in all browsers?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!

  #2  
Old May 16th, 2005, 15:50
New Member
Join Date: May 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
The table has a width element that you can set by percentage. Set the table to 100% and your margin elements in the body tag to zero and you should be in business.

As for 'other elements', I would need a list of specifics.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #3  
Old May 16th, 2005, 18:35
New Member
Join Date: May 2005
Location: asdf
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by sisyphus74
The table has a width element that you can set by percentage. Set the table to 100% and your margin elements in the body tag to zero and you should be in business.
How will that limit the table to a maximum width? I have the width set to 100%, so it resizes with the browser window. I don't want it to ever get larger than 900px though. How can I limit it to 900px while allowing it to resize at any size smaller than that?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #4  
Old May 16th, 2005, 22:07
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
You cannot limit the table to a maximum width without simply specifying a static width, ie: 500px. In that case it will always be 500 px regardless of anything else.

100% means just that - your design will stretch to fill the browser window.

What you're asking ( having a maximum width and stretching below that) is possible, but would require some hefty Javascript or other solution that would probably not be compatible with most browsers.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #5  
Old May 16th, 2005, 22:12
New Member
Join Date: May 2005
Location: asdf
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Sirkent
What you're asking ( having a maximum width and stretching below that) is possible, but would require some hefty Javascript or other solution that would probably not be compatible with most browsers.
That's what I figured. CSS2 has a handy max-width variable, but most browsers don't recognize it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Closed Thread

Tags
maxwidth, browsers

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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Browsers kela JavaScript Forum 4 Jun 12th, 2008 11:49
Div borders & different browsers djeyewater Web Page Design 0 Jan 6th, 2008 23:17
goes weird in ie & aol browsers milly Starting Out 2 Nov 8th, 2007 10:08
Browsers chubbs Web Page Design 20 Jun 14th, 2007 17:08
Please test for me in different browsers Lchad Web Page Design 9 Apr 27th, 2007 15:51


All times are GMT. The time now is 21:49.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved