CSS ‘max-width’ in IE
Anybody who’s anybody knows by now that :IE: simply isn’t up to snuff with current web standards. For most users it’s probably “good enough”, but for those of us designing pages and sites, we know that it’s an absolute nightmare to work with. One of the things (among many) that it’s missing is support for some of the :CSS:2 features such as max-width—something that’s gaining a lot of momentum for making more readable pages by limiting the maximum line length for text. It’s something I’m sure I’ll use if/when I do a redesign for the site.
Luckily, it seems that there is a way to simulate max-width in the dreaded IE. The technique uses an “expression” ability only available in IE, so it should be safely ignored by other browsers.
The only thing I’m not sure of right now is whether this can use used in an external stylesheet. I didn’t see mention of it in the article and I haven’t had a chance to test it myself. Anyway, enjoy your newfound ability to use max-width and other features!
Posted Monday February 16, 2004 in (X)HTML and CSS by Chris Curtis
This is an older entry and as such, it may be by a guest author or contain formatting problems / extraneous code. If you notice something wrong with the entry, please use the Contact page to let me know the entry title and issue.