Help - Search - Members - Calendar
Full Version: set max-width, still going 100% in IE
HTMLHelp Forums > Web Authoring > Cascading Style Sheets
s_connors
http://cck2.com/demo/temp.html


in FF its only 800 px wide but in IE it goes all the way arcross.


I'm forcing my self to learn CSS b/c tables are the DEVIL, as mama always said.
Effovex
IE doesn't support it, sadly. You can use conditional comments to set a fixed width, or use conditional comments to set a javascript function that sets the width of the element onResize and onLoad if the width is greater than the max width you want.
Shadeaux
Is this close to what you want? My page container is the same size in IE or FF...I used only CSS

http://www.vectorcsp.com/test/index.html
s_connors
yeah, how did you do thaT?
Effovex
...he set a fixed width. Just set the width instead of the max-width.

Of course, this means users will get horizontal scrolling if their viewport is smaller than the set width.
Shadeaux
Yep... and auto margins so that it remains centered when you change resolution.
s_connors
Thanks guys your a huge help
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.