Welcome to the OZONE Asylum FAQWiki! |
How can I use the 'max-width' CSS property in Internet Explorer? Differences |
---|
Based on this article: code: <html> <head> <style type="text/css"> #CssSelector { /* for Firefox, Opera and others: */ max-width: 250px; } </style> <!--[if gte IE 5]> <style type="text/css"> #CssSelector { /* For Internet Explorer: */ width: expression(Math.min(parseInt(this.offsetWidth), 250 ) + "px"); } </style> <![endif]--> </head> <body> <div id="CssSelector">...</div> </body> </html>
|