On Thu, Jan 28, 2010 at 9:03 AM, Kevin Leebroderick
<[email protected]> wrote:
> I was wondering if anyone else has come across Safari reading the [if IE]
> comments. I am viewing a site I am building on Safari 4.0.4 and was
> inspecting the pages h1 tag when I saw that it was referencing my
> iemaster.css.
>
> The site can be viewed at"
> http://www.leebroderickweb.com/preview/raymondbroderick
>
> If you inspect the div#content h1 "Focusing on treating trauma and its
> effects on you and your family" you can see that it is picking up the
> letter-spacing defined in my iemaster.css.
> I am calling the this css in the following way:
> <!-- [if IE] --><link href="css/iemaster.css" type="text/css"
> rel="stylesheet" media="screen,projection" /><!-- [endif] -->
>
> I am not sure if it is in the way I declared the iemaster.css or if
> something else may be going on. Was wondering if anyone had some insight on
> this.
>
> Thanks Kevin

Kevin,

You didn't write the ie conditional comment correctly.  For it to work
the way you want it to work the <link> tag needs to be part of the
html comments like this:

 <!--[if IE]>
<link href="css/iemaster.css" type="text/css"> rel="stylesheet"
media="screen,projection" />
<![endif]-->

The way you currently have it the link tag will be read by all
browsers(not just safari).  If you wanted only non-IE browsers to see
your link then the way you have it is correct just change the [if IE]
to [if !IE].

-- 
------------------------------------------------------------------------------------
Jason Arnold
http://www.meenfrmr.com
------------------------------------------------------------------------------------
______________________________________________________________________
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