Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: CSS overriding for IE... need help.  (Read 4105 times)

0 Members and 1 Guest are viewing this topic.

WyattSoft

    Topic Starter


    Beginner

    Thanked: 4
    CSS overriding for IE... need help.
    « on: August 11, 2009, 10:14:32 AM »
    I'm making a new website.

    I have my navigation bar division set with a "inline-block" display property, which doesn't seem to work correctly with IE7 and below.

    I can fix this by setting the display property to "inline" but standards compliant browsers hide the background image, which is not what I want.

    So I need to have some sort of override for the display property for IE7 and older.

    So I tried this code:

    HTML Header
    Code: [Select]
    <link href="css/home.css" rel="stylesheet" type="text/css" />
     <!--[if lte IE 7]>
       <link rel="stylesheet" type="text/css" href="href="css/home_ie7.css" />
     <![endif]-->

    CSS: home_ie7.css
    Code: [Select]
    @charset "utf-8";
    /* CSS Document */

    #nav {display:inline;}

    And it doesn't work.

    I've also tried adding !important to the CSS but it still doesn't work.


    All help is appreciated.

    WyattSoft

    WyattSoft

      Topic Starter


      Beginner

      Thanked: 4
      Re: CSS overriding for IE... need help.
      « Reply #1 on: August 13, 2009, 02:47:58 AM »
      Anything?

      kpac

      • Web moderator
      • Moderator


      • Hacker

      • kpac®
      • Thanked: 184
        • Yes
        • Yes
        • Yes
      • Certifications: List
      • Computer: Specs
      • Experience: Expert
      • OS: Windows 7
      Re: CSS overriding for IE... need help.
      « Reply #2 on: August 13, 2009, 03:54:07 AM »
      I'm not sure about this, but I presume "lte IE 7" means less than IE7?

      WyattSoft

        Topic Starter


        Beginner

        Thanked: 4
        Re: CSS overriding for IE... need help.
        « Reply #3 on: August 13, 2009, 03:57:45 AM »
        Less than or equal

        I got it from here:
        http://www.quirksmode.org/css/condcom.html

        kpac

        • Web moderator
        • Moderator


        • Hacker

        • kpac®
        • Thanked: 184
          • Yes
          • Yes
          • Yes
        • Certifications: List
        • Computer: Specs
        • Experience: Expert
        • OS: Windows 7