Results 1 to 4 of 4

Thread: IE7 problem with CSS menu

  1. #1
    Join Date
    Sep 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy IE7 problem with CSS menu

    Hi,

    I downloaded and am using a navigation menu from this forum and am really pleased with it. However something I have done mess it up in IE7 (possibly IE8 as well but have not tested - it works fine in IE9).

    If anyone has any thoughts as to what I can do to make it look good I would really appreciate it:

    http://www.zeidman.info

    Thanks

    David

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Please be more specific about the problem. It looks to me like the subnav class is just a little to high up. Perhaps a little too thick vertically as well. That's checking in IE 9's IE 7 mode. In IE 9's IE 8 mode it looks fine.

    If that's the problem you can do a suplemental stylesheet for IE 7. From the source code of the page, addition highlighted:

    Code:
    <!-- CSS for Tab Menu #3 -->
    <link rel="stylesheet" type="text/css" href="_css/solidblocksmenu.css" />
    <!--[if lt IE 8]>
    <link rel="stylesheet" type="text/css" href="_css/solidblocksmenu_ie7.css" />
    <![endif]-->
    <link href="_css/main.css" rel="stylesheet" type="text/css" />
    <link rel="shortcut icon" href="_img/favicon.ico" type="image/x-icon" />
    <link rel="icon" href="_img/favicon.ico" type="image/x-icon" />
    <!-- InstanceParam name="currentTab" type="number" value="0" -->
    Make a file called solidblocksmenu_ie7.css and in it put these styles:

    Code:
    ul.subnav {
    	padding: 0 0 8px 0;
    	margin-top: 12px;
    }
    Put it in the _css folder.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Sep 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you so much. That worked a treat!

    Also - I had no idea that IE9 had the developer tools with the option to mimic IE7

    David

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You're welcome. And yes, IE 9 can display as IE 8 or 7 via its developer tools. However, it's like only 95% accurate. That's why I included the phrase, "If that's the problem".
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •