- Last post
- 8 Responses
So, after getting tired of trying to make pages look correct with one sheet, I've succumb to creating an IE only stylesheet.
I'm curious how others that are doing it this way handle both style sheets. Do you have both open at the same time and just duplicate as you go? Or, do you do most of the work and go back and tweak the IE sheet?
yea IE sucks balls... it should die.
I style for all browser using one style sheet, then duplicate that style sheet for IE7,6 to see what not working, then just the the CSS to suit.
Same as pill. Most stuff will be fine working similar so I just use the IE only to override the CSS I need to.
Also, if you're not already, using a reset stylesheet first cuts down the need to rewrite IE ones.
This is something akin to what I always use for IE stuff.
<!--[if (IE 8)|(IE 7)]>
<link rel="stylesheet" href="/_assets/css/ie78.css" type="text/css"/>
<!--[if IE 6]>
<meta http-equiv="imagetoolbar" content="no" />
<link rel="stylesheet" href="/_assets/css/ie6.css" type="text/css"/>
<!--[if IE 6]>
//explode computer ----->>>>
I wish I could do this
The more I run into this shit, the more I think I'm going to start using php to render css files so I can use logic in my css.
<style type="text/css" media="Screen">
<!--[if lt IE 8]>
<link rel="stylesheet" type="text/css" href="/css/ie7.css" />
<!--[if lte IE 6]>
<link rel="stylesheet" type="text/css" href="/css/ie6.css" />
This is what I do - I write CSS for modern browsers and IE7/8 then using conditional comments (see above) I include CSS file with fixes/degradation for IE6. I don't write completely new styles for IE6; I just fix what looks broken.
So far, I have never run into serious issues with IE7/8; only IE6 is the issue.