PDA

View Full Version : Cannot get menu to view correct in IE!



jennp
04-28-2012, 09:02 PM
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:


@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;
}
}