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.
|
|
|
|
|
![]() |
||
Max-Width in All Browsers
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
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? |
|
|
|
|||
|
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. |
|
|||
|
Quote:
|
|
|||
|
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. |
|
|||
|
Quote:
|
![]() |
| Tags |
| maxwidth, browsers |
| Thread Tools | |
|
|
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 |