On Wed, Aug 27, 2008 at 10:19 AM, Stan McCoy <[EMAIL PROTECTED]> wrote:

> The standard css file is overriding the IE6 and IE7 specific versions. For
> example, if I give the body a green border in the IE6 style sheet, it shows
> in IE6 only. But if I then add a different colored border to the standard
> style sheet, it overrides the border specified in the IE6 style sheet. Hope
> that makes sense. Thanks.
>
> <!--[if IE 6]>
> <link href="css/avalon_ie6.css" rel="stylesheet" type="text/css"
> media="screen" />
> <![endif]-->
>
> <!--[if IE 7]>
> <link href="css/avalon_ie7.css" rel="stylesheet" type="text/css"
> media="screen" />
> <![endif]-->
>
> <link href="css/avalon.css" rel="stylesheet" type="text/css" media="screen"
> />
>

Stan,

The rule you specify in your IE6 sheet is overridden by the rule in the
avalon sheet because you include avalon.css after the IE sheet. Place that
include first, then override with the browser specific sheet.

<link href="css/avalon.css" rel="stylesheet" type="text/css" media="screen"
/>
<!--[if IE 6]><link href="css/avalon_ie6.css" rel="stylesheet"
type="text/css" media="screen" /><![endif]-->
<!--[if IE 7]><link href="css/avalon_ie7.css" rel="stylesheet"
type="text/css" media="screen" /><![endif]-->

--G
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to