Paul Bellows: Pop and Style
IE Min-width and Max-width
Posted Mar 3, 02:32 PM by Paul Bellows
I don’t always understand the IE6 Trident rendering engine. There’s a lot of stuff in there that’s confusing and from long ago. But I just had a project where I absolutely had to have min-width and max-width working in IE6 and most of my solutions were breaking somehow or forcing me to drop major kludges into my HTML page.
IE Expressions are like Javascript inside of your CSS that only IE understands. They’re a bad thing, but they solve some problems. Your CSS will not validate.
Most of my problems were due to the fact that I didn’t understand the fact that IE6 uses different Javascript implementations depending on whether you were in quirks mode or standards compliant mode. Fortunately, Georg did and has written some beautiful and elegant solutions. Also his blog tagline is “Norwegian Cow is Mooooo-ing the World”.
You could use IE conditional comments to add these statements if you just can’t sleep until your CSS validates. But I’m building a site for an enterprise environment where I can’t entirely control the CMS output (plus there are 4-5 different CMS environments in play and I’m delivering cross-departmental templates) so I can’t guarantee 100% validation anyway since HTML and CSS are both dynamically generated by CMS products ranging from RedDot to GaussWCM to Sharepoint to Lotus/Domino.
My entire client base on this job still uses IE6 because IE7 doesn’t yet support Citrix. So IE6 support is critical. And now I’ve got it.
commenting closed for this article