Results 1 to 2 of 2

Thread: Menu not showing correctly with graphic in IE

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

    Default Menu not showing correctly with graphic in IE

    Go to : http://www.jpollman-marketing.com/BioServe/index.html
    to see how the menu reacts in IE. It works perfect in Safari, Firefox, Opera and Chrome.

    Here is my CSS Code:


    Code:
    @charset "UTF-8";
    
    /* SpryMenuBarHorizontal.css - version 0.6 - Spry Pre-Release 1.6.1 */
    
    /* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */
    
    /*************************
    
    
    
    ************************************/
    
    /* The outermost container of the Menu Bar, an auto width box with no margin or padding */
    
    ul.MenuBarHorizontal
    {
    margin: 0;
    padding: 0;
    list-style-type: none;
    font-size: 85%;
    cursor: default;
    width: 900px;
    }
    
    
    ul.MenuBarActive
    {
    z-index: 1000;
    }
    
    ul.MenuBarHorizontal li
    {
    margin: 0;
    padding: 0;
    list-style-type: none;
    font-size: 85%;
    font-family: Verdana, Geneva, sans-serif;
    text-align: center;
    cursor: pointer;
    width: 112px;
    float: left;
    }
    
    ul.MenuBarHorizontal ul
    {
    margin: 0;
    padding: 0;
    list-style-type: none;
    font-size: 95%;
    z-index: 1020;
    width: 112px;
    cursor: default;
    position: absolute;
    left: -1000em;
    }
    
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
    {
    left: auto;
    width:112px;
    z-index: 1020;
    
    }
    
    ul.MenuBarHorizontal ul li
    {
    width: 112px;
    }
    
    ul.MenuBarHorizontal ul ul
    {
    position: absolute;
    
    }
    
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible ul.MenuBarSubmenuVisible
    {
    left: auto;
    top: 0;
    }
    
    /*******************************************************************************
    
    DESIGN INFORMATION: describes color scheme, borders, fonts
    
    *******************************************************************************/
    
    /* Submenu color: #FFFFFF; */
    ul.MenuBarHorizontal ul
    {
    border: 0;
    padding:0px 0px 0px 0px;
    }
    
    ul.MenuBarHorizontal a
    {
    display: block;
    cursor: pointer;
    color:#00907f;
    padding: 1em 0em 1em 0em;
    text-decoration: none;
    border: 0;
    width: 112px;
    }
    
    ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus
    {
    background-image: url(bluehighlightsub.png);
    background-repeat: no-repeat;
    background-position: 50% 50%;
    color: #FFF;
    }
    
    ul.MenuBarHorizontal a.MenuBarItemHover
    {
    background-image: url(bluehighlightsub.png);
    background-repeat: no-repeat;
    background-position: 50% 50%;
    color: #FFF;
    }
    
    
    /*******************************************************************************
    
    MAINMENU INDICATION: bluehightlight white type
    
    *******************************************************************************/
    ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible
    {
    background-image: url(bluehighlightsub.png);
    background-repeat: no-repeat;
    background-position: 50% 50%;
    color:#FFF;
    }
    
    
    /*******************************************************************************
    
    SUBMENU INDICATION: styles if there is a submenu under a given menu item
    
    *******************************************************************************/
    
    
    ul.MenuBarHorizontal a.MenuBarItemSubmenu
    {
    background-image: url(SpryMenuBarDown.gif);
    text-align: center;
    background-repeat: no-repeat;
    background-position: 50% 95%;
    
    
    }
    
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenu
    {
    background-image: url(SpryMenuBarDown.gif);
    background-repeat: no-repeat;
    background-position: 50% 95%;
    
    }
    
    
    /*color:#00907f;*******
    main*/
    ul.MenuBarHorizontal a.MenuBarItemSubmenuHover
    {background-image: url(bluehighlightsub.png);
    background-repeat: no-repeat;
    background-position: 50% 50%;
    }
    
    
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenuHover
    {
    background-image: url(SpryMenuBarDown.gif);
    background-repeat: no-repeat;
    background-position: 50% 90%;
    
    }
    ul.MenuBarHorizontal ul {
    width: 112px;
    }
    /*******************************************************************************
    
    BROWSER HACKS: the hacks below should not be changed unless you are an expert
    
    *******************************************************************************/
    
    /* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
    ul.MenuBarHorizontal iframe
    {
    position: absolute;
    z-index: 1010;
    filter:alpha(opacity:0.1);
    }
    /* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
    @media screen, projection
    {
    ul.MenuBarHorizontal li.MenuBarItemIE
    {
    display: inline;
    f\loat: left;
    background: #FFF;
    }
    }
    Edit/Delete Message
    Last edited by jscheuer1; 05-07-2012 at 02:48 AM. Reason: Format

  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

    For IE, at the very end here:

    Code:
    /* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
    @media screen, projection
    {
    ul.MenuBarHorizontal li.MenuBarItemIE
    {
    display: inline;
    f\loat: left;
    background: #FFF;
    }
    }
    Get rid of the highlighted line.
    Last edited by jscheuer1; 05-07-2012 at 02:54 PM. Reason: detail
    - John
    ________________________

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

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    jennp (05-07-2012)

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
  •