« Special Guest Entry: Behold My Plow | Main | Temperature Envy »

max-width and Internet Explorer 7

Just a blurb to share:
After struggling with max-width in IE7 (they said it was supported) I discovered a little line of text on a Microsoft developer support page that solved my problem. The max/min-width property will work if you declare "XHTML 1.0 Strict" in your DTD. I was flogging away at it unsuccessfully while "HTML 4.01 Transitional" was perched up in the rafters of my document, silently mocking me. A quick revision of that got me full max/min-width control in IE7. Nice.
Full documentation here.
Note: IE7 is the first version of Explorer that supports the max-width & min-width property.

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)