On 3/20/07, Charles Marcus <[EMAIL PROTECTED]> wrote:
>
> One more question before I crawl back into my cave for a few weeks... ;)
>
> Is there a good beginner explanation for how to deal with browser tests
> and incompatibilities? Ie, proper syntax for how to provide some CSS
> code that would only be applied to IE5 (or IE6 - or IE7) for example?
>
> I've seen a few examples, but didn't understand how they worked, and I'd
> rather understand the syntax, if possible, rather than just blindly copy
> something.


The easiest approach is to use IE's conditional comments (
http://msdn.microsoft.com/workshop/author/dhtml/overview/ccomment_ovw.asp).
You only need to play clever parser games when you have browsers that report
the same version, but behave differently (ex: IE 5.5 on intel vs mac)

<link rel="stylesheet" type="text/css" href="standards compliant.css">
<!--[if IE]><link rel="stylesheet" type="text/css"
href="any_ie.css"><![endif]-->
<!--[if lt IE 7]><link rel="stylesheet" type="text/css"
href="pre_ie_7.css"><![endif]-->
<!--[if gte IE 7]><link rel="stylesheet" type="text/css"
href="ie_7.css"><![endif]-->

dcm
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to