OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
Max-Width in IE
This page's ID:
25115
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
OK, that's a point! As a workaround, how about putting the 'width: expression(...)' into conditional comments? That way, IE would ignore the standard 'max-width' and the perfect browser would ignore the comments. [code]<!--[if IE 5]> <style type="text/css"> #container { width: expression(document.body.clientWidth > 1024? "1024px": "100%" ); } </style> <![endif]-->[/code] Again, it's more of a hack than anything else, of course, but when max-width is what I need for my layout and it isn't possible to do it 'correctly' in IE, then I think I can live with it. //edit: poi - Generally offsetWidth might be the safer bet, but in my case it was for a <div> that serves as a container for the whole page, so clientWidth worked just as well.... ;) kuckus [small](Edited by [internallink=1695]kuckus[/internallink] on 02-26-2005 11:55)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »