Listen to the Joystiq Podcast (because your ears can't read)

Using Dynamic Properties to mimic max-width in IE

Tom Lee has a rather hairy - but workable - solution for mimicking max-width in IE. It involves the use of Microsoft's Dynamic Properties.

The first time I tried this, it crashed my browser. A friend had the same result. Next time I tried it, all was well - but I still feel like I must tread lightly with this code, and routinely whisper sweet nothings in its ear.

While reading the MSDN page about Dynamic Properties, I had to wonder... why did they bother with all that nonsense, when they could've just followed the CSS spec?

Of course, with IE 7, that's exactly what they've done (to a point), so this proprietary hodgepodge will soon be moot. But in the meantime - and for several years to come, because let's be honest, few sites are going to cut off support for IE 6 right away - this is your solution. That is, unless it crashes your browser.

Reader Comments

(Page 1)

RESOURCES

RSS NEWSFEEDS

Powered by Blogsmith

Other Weblogs Inc. Network blogs you might be interested in: