Archive for the 'Conditional Comment' Category



How good is IE7? I was wondering about that today as I reloaded it to do another batch of bug fixing. The proof may be in your CSS pudding.
We are using conditional comments to import either ie6.css or ie7.css to control our hacks.

<! –[if IE 7]>

<link href=“/css/ie7.css” type=“text/css” rel=“stylesheet” media=“all”/>

<![endif]–>

<! –[if lte IE [...]

I’m doing some IE7 hacking and was wondering what was going on with some of my sprites. They look fine in all of the browsers except IE7. For that lovely browser, I say with my teeth clinched, I’m getting really strange results. At first I thought it was a hasLayout issue, that I needed [...]

This is probably one of those posts that I’ll use a million times and everyone else will say… that’s nice. Here’s how you create a conditional comment for IE6 with xsl. you need to use an xsl:comment and a cdata and don’t add any extra spacing.

<xsl:comment><![CDATA[[if lte IE 6]>

IE6 only element, such as an [...]

I’ve played around with IE7 for a while, but haven’t really started debugging with it until now. Fortunately, I’ve already set up the site to use conditional comments and deliver an IE6.css file and a separate IE7.css file. This has made it much easier to target the offending areas of the site.
IE7 has had [...]

CSS filters and Hacks are so 2005
I think the future of CSS is not in hacks but looking seriously into using conditional comments. I’m saying this as someone that is trying to figure out the best approach for retrofitting older conversions.
Conditional comments are IE statements that say if IE6 or any other version, use this [...]




About

You are currently browsing the Advanced CSS Design Resources - last-child.com weblog archives for the 'Conditional Comment' category.

Longer entries are truncated. Click the headline of an entry to read it in its entirety.