#some_element { margin: 5px; color: blue; }
#some_element { margin: 5px; color: blue; }
body.msie_7 #some_element { margin: 7px 5px; color: blue; }
<!--[if lte IE 6]>
conditional statements. Only IE sees them, I can fix the CSS to show exactly what I want for each browser, and I avoid hacks (which I am really not that good at) in my CSS. I don't like using the user_agent string, it can be fooled. And finally, I don't code sites in anything but HTML and CSS. I do not know any other languages.* a {
color: #FF0000;
}
a {
color: #FFF000;
}
Or, you can use just throw an asterisk in front of the item in the same CSS sheet.Code: [Select]* a {
color: #FF0000;
}
a {
color: #FFF000;
}
The asterisk will pull up pretty much anything IE 7 and earlier and the one without will pull up in gecko and non-IE.
Not fully supported by all browsers however.
You have to troubleshoot the code, no matter where it is. Having it in a different file just means one more tab open in my editor. And it gets all the bits that need fixed for that browser in one place. Fix everything in the compliant stylesheet first, then open up the older browsers and fix the styling in their stylesheets. It works for me, and it means I don't have to try teaching myself PHP. ;D
I expect you are right about Chrome being better when it is older. I have not tried it yet, because it is so new and because FF does what I want so well.
Chrome FINALLY got me using something other than IE on a regular basis and I've never looked back. =]