ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Browser Specific CSS

March 23, 2012 11:43am

Subscribe [3]
  • #1 / Mar 23, 2012 11:43am

    UKFreelancer

    49 posts

    Hi,

    Does anyone know how you do Browser Specific CSS?
    For Example:

    On an normal HTML Page you’d have:

    <!—[if lte IE 8]>
      <link href=“css/ie8.css” rel=“stylesheet” type=“text/css” media=“screen” />
    <![endif]—>

    But EE2 doesn’t like that?

    How would you implement that in EE2?


    Many thanks,


    UKFreelancer.

  • #2 / Mar 23, 2012 1:53pm

    Rob Allen

    3114 posts

    Make sure you make the CSS path correct, add a slash in front of the path:

    <!—[if lte IE 8]>
      <link href="/css/ie8.css" rel="stylesheet" type="text/css" media="screen" />
    <![endif]—>
  • #3 / Mar 24, 2012 4:16pm

    Rob Games

    38 posts

    Also try adding a double hyphen “—”

    <!--[if lte IE 8]>
      <link href="/css/ie8.css" rel="stylesheet" type="text/css" media="screen" />
    <![endif]-->
  • #4 / Mar 26, 2012 8:45am

    UKFreelancer

    49 posts

    Thanks for all the help guys.


    UKFreelancer.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases