Max Width in IE Using Expressions
- 16th February 2004
- with Comments off for Max Width in IE Using Expressions
- Filed Under: Weblog
Andy Budd just posted a link to a great article by Sven Tofte about using IE's expression property to emulate max-width.
I came across expressions when I first started using CSS but I disgarded them when I found that they were browser dependent and wouldn't validate. But what if you're more bothered about readable text than validation? Well...
As anyone who's tried coding CSS for IE will know, it's support for the standards is pretty behind the times and lacks certain key rules. One of these is max-width. What Sven has done is use some simple DHTML within his CSS to emulate the same effect.
Great idea. I wish I'd thought of it first.
- Comments off for Max Width in IE Using Expressions