Forums

CSS Conditional comments for IE 8 and earlier (4 posts)

  1. Robodashy
    Member
    Posted 5 months ago #

    Hi all.

    I've had a quick look over the forums and I'm still not able to find the answer I'm looking for, so thought it's about time I make my first post.

    I'm trying to get all versions equal to or earlier than IE 8 to use a background image for each div, whereas all other browsers that support CSS 3 will take on the rounded corners as per usual CSS.

    My header.php contains the following:

    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <!--[if lte IE 8]>
    <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/iestyle.css" media="screen" type="text/css" />
    <![endif]-->

    which as I can tell from all the other forum post's I've read seems to do the trick.

    So I'm wondering, is it something in my CSS file itself?
    the "iestyle.css" file only contains the 3 divs and their code - including the changes required for the background image to show.

    If anyone could help that would be most greatly appreciated.

  2. Robodashy
    Member
    Posted 4 months ago #

    Sorry to bump this, but still no dice on this one being fixed.

    Is anyone out there?

  3. rupaknpl
    Member
    Posted 4 months ago #

    Did not get the points you want to describe do u want the description of the code then post your code?

    [signature moderated]

  4. Robodashy
    Member
    Posted 4 months ago #

    Hi rupaknpl. From what I understand the conditional comments for ie go in comments tags, ie still recognizes the code in these tags and runs whatever is in there.

Reply

You must log in to post.

About this Topic