CRUCIAL: Menu Bar Bug in Internet Explorer
by Austin Zago
on
Jul 2, 2009 at 9:59:37 pm
Hello,
I am have a super annoying problem with my vertical menu bar in internet explorer.
The site works fine in Firefox, and Safari but in IE it doesn't.
The submenus are not aligned with the menus, and this is a real problem because the submenu stays in one spot, so as you get lower down the page, you lose the ability to click on some links.
This is urgent as the site is currently up and there are many business partners who are going to view the site tomorrow for collaboration purposes.
The site is http://www.platinumprostudies.com, and below is the CSS for my Menu Bar, thank you. Oh, and also I've tried about every fix offered on this site and none of worked so far.
@charset "UTF-8";
/* SpryMenuBarVertical.css - version 0.6 - Spry Pre-Release 1.6 */
/* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */
/* The outermost container of the Menu Bar, a fixed width box with no margin or padding */
ul.MenuBarVertical
{
margin: 0;
padding: 0;
list-style-type: none;
font-size: 100%;
width: 8em;
}
/* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */
ul.MenuBarActive
{
z-index: 1000;
}
/* Menu item containers, position children relative to this container and are same fixed width as parent */
ul.MenuBarVertical li
{
margin: 0;
padding: 0;
list-style-type: none;
font-size: 100%;
position: relative;
text-align: left;
width: 150px;
background-color: #AB7D0D;
}
/* Submenus should appear slightly overlapping to the right (95%) and up (-5%) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
ul.MenuBarVertical ul
{
margin: 0% 0 0 95%;
padding: 0;
list-style-type: none;
font-size: 100%;
position: absolute;
z-index: 1020;
width: 150px;
left: -1000em;
top: 0;
}
/* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */
ul.MenuBarVertical ul.MenuBarSubmenuVisible
{
left: 0;
}
/* Menu item containers are same fixed width as parent */
/* Outermost menu container has borders on all sides */
ul.MenuBarVertical
{
border: 1px solid #D6AC4B;
}
/* Submenu containers have borders on all sides */
ul.MenuBarVertical ul
{
border: 1px solid #AB7D0D;
}
/* Menu items are a light gray block with padding and no text decoration */
ul.MenuBarVertical a
{
display: block;
background-color: #D6AC4B;
padding: 0.5em 0.75em;
color: #000;
text-decoration: none;
text-align:center
}
/* Menu items that have mouse over or focus have a blue background and white text */
ul.MenuBarVertical a:hover, ul.MenuBarVertical a:focus
{
background-color: #466C65;
color: #FFF;
}
/* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
ul.MenuBarVertical a.MenuBarItemHover, ul.MenuBarVertical a.MenuBarItemSubmenuHover, ul.MenuBarVertical a.MenuBarSubmenuVisible
{
background-color: #466C65;
color: #FFF;
}
/* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarVertical a.MenuBarItemSubmenu
{
background-image: url(SpryMenuBarRight.gif);
background-repeat: no-repeat;
background-position: 95% 50%;
}
/* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarVertical a.MenuBarItemSubmenuHover
{
background-image: url(SpryMenuBarRightHover.gif);
background-repeat: no-repeat;
background-position: 95% 50%;
}
/* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
ul.MenuBarVertical iframe
{
position: relative;
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.MenuBarVertical li.MenuBarItemIE
{
display: inline;
float: left;
background: #83AEA5;
}
}
#MenuBar1 {
color: #0000FF;
}
nowthatyouarea {
font: Verdana;
font-size: 13px;
color: #000;
}
Re: CRUCIAL: Menu Bar Bug in Internet Explorer by Austin Zago on Jul 3, 2009 at 8:30:08 pm
There was actually three problems in this one problem,
there was #1 Some Error that occured in IE that I described above that I fixed.
#2 There was the expanding box problem, that I fixed.
But now there is still one more problem, if someone could help with it, that would be great, in IE 6 and earlier, whenever I go over a menu item, a space opens up between the menu item I am rolling over and the one below it, this is only when rolling over it. My CSS code is below. Thank you, viewing my website on IE 6 platinumprostudies.com will probably help.
@charset "UTF-8";
/* SpryMenuBarVertical.css - version 0.6 - Spry Pre-Release 1.6 */
/* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */
/* The outermost container of the Menu Bar, a fixed width box with no margin or padding */
ul.MenuBarVertical
{
margin: 0;
padding: 0;
list-style-type: none;
font-size: 100%;
width: 143px;
}
/* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */
ul.MenuBarActive
{
z-index: 1000;
}
/* Menu item containers, position children relative to this container and are same fixed width as parent */
ul.MenuBarVertical li
{
margin: 0;
padding: 0;
list-style-type: none;
font-size: 12px;
position: relative;
text-align: left;
width: 140px;
background-color: #AB7D0D;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: bold;
}
ul.MenuBarVertical2 li
{
margin: 0;
padding: 0;
list-style-type: none;
font-size: 14px;
position: relative;
text-align: left;
width: 140px;
background-color: #AB7D0D;
font-family:Verdana, Arial, Helvetica, sans-serif;
font-weight: bold;
}
/* Submenus should appear slightly overlapping to the right (95%) and up (-5%) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
ul.MenuBarVertical ul
{
margin: 0% 0 0 95%;
padding: 0;
list-style-type: none;
font-size: 100%;
position: absolute;
z-index: 1020;
width: 143px;
left: -1000em;
top: 0;
}
/* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */
ul.MenuBarVertical ul.MenuBarSubmenuVisible
{
left: 0;
font-weight: bold;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
}
/* Menu item containers are same fixed width as parent */
/* Outermost menu container has borders on all sides */
ul.MenuBarVertical
{
border: 1px solid #D6AC4B;
}
/* Submenu containers have borders on all sides */
ul.MenuBarVertical ul
{
border: 1px solid #AB7D0D;
}
/* Menu items are a light gray block with padding and no text decoration */
ul.MenuBarVertical a
{
display: block;
background-color: #D6AC4B;
padding: 0.5em 0.75em;
color: #000;
text-decoration: none;
text-align:center
}
/* Menu items that have mouse over or focus have a blue background and white text */
ul.MenuBarVertical a:hover, ul.MenuBarVertical a:focus
{
background-color: #466C65;
color: #FFF;
}
/* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
ul.MenuBarVertical a.MenuBarItemHover, ul.MenuBarVertical a.MenuBarItemSubmenuHover, ul.MenuBarVertical a.MenuBarSubmenuVisible
{
background-color: #466C65;
color: #FFF;
}
/* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarVertical a.MenuBarItemSubmenu
{
background-image: url(SpryMenuBarRight.gif);
background-repeat: no-repeat;
background-position: 95% 50%;
}
/* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarVertical a.MenuBarItemSubmenuHover
{
background-image: url(SpryMenuBarRightHover.gif);
background-repeat: no-repeat;
background-position: 95% 50%;
}
/* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
ul.MenuBarVertical iframe
{
position: relative;
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.MenuBarVertical li.MenuBarItemIE
{
display: inline;
float: left;
background: #83AEA5;
}
}
#MenuBar1 {
color: #0000FF;
}
nowthatyouarea {
font: Verdana;
font-size: 13px;
color: #000;
}
Re: CRUCIAL: Menu Bar Bug in Internet Explorer by Richard Williams on Jul 3, 2009 at 9:14:42 pm
Hi
Sorry, there is a problem with the site at the moment that is being looked into as i am not recieving notice of new posts, so only just picked this up. The link is wrong, did you mesan studios? If so, looks like you have sorted the problem out now. :o) Apologies for delay in response
Re: CRUCIAL: Menu Bar Bug in Internet Explorer by Austin Zago on Jul 3, 2009 at 9:29:36 pm
No Problem, I accidentally placed a comma in the url, the correct one is platinumprostudies.com I sorted out most of the problems, but there is one more. In IE6 and earlier whenever I rollover the menu bar, a space is made between the menu item I am rolling over and the one below. Dreamweaver is not reading any compatibility issues except for two, one says that display: inline is not a supported value, dreamweaver says this is only for IE 5 and earlier, so that is questionable. And it also says there is an error in parsing styles with filter:alpha(opacity:0.1), it says this only affects Firefox 1.0.
My CSS Code is below, thanks I appreciate it,
@charset "UTF-8";
/* SpryMenuBarVertical.css - version 0.6 - Spry Pre-Release 1.6 */
/* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */
/* The outermost container of the Menu Bar, a fixed width box with no margin or padding */
ul.MenuBarVertical
{
margin: 0;
padding: 0;
list-style-type: none;
font-size: 100%;
width: 143px;
}
/* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */
ul.MenuBarActive
{
z-index: 1000;
}
/* Menu item containers, position children relative to this container and are same fixed width as parent */
ul.MenuBarVertical li
{
margin: 0;
padding: 0;
list-style-type: none;
font-size: 12px;
position: relative;
text-align: left;
width: 140px;
background-color: #AB7D0D;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: bold;
}
ul.MenuBarVertical2 li
{
margin: 0;
padding: 0;
list-style-type: none;
font-size: 14px;
position: relative;
text-align: left;
width: 140px;
background-color: #AB7D0D;
font-family:Verdana, Arial, Helvetica, sans-serif;
font-weight: bold;
}
/* Submenus should appear slightly overlapping to the right (95%) and up (-5%) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
ul.MenuBarVertical ul
{
margin: 0% 0 0 95%;
padding: 0;
list-style-type: none;
font-size: 100%;
position: absolute;
z-index: 1020;
width: 143px;
left: -1000em;
top: 0;
}
/* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */
ul.MenuBarVertical ul.MenuBarSubmenuVisible
{
left: 0;
font-weight: bold;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
}
/* Menu item containers are same fixed width as parent */
/* Outermost menu container has borders on all sides */
ul.MenuBarVertical
{
border: 1px solid #D6AC4B;
}
/* Submenu containers have borders on all sides */
ul.MenuBarVertical ul
{
border: 1px solid #AB7D0D;
}
/* Menu items are a light gray block with padding and no text decoration */
ul.MenuBarVertical a
{
display: block;
background-color: #D6AC4B;
padding: 0.5em 0.75em;
color: #000;
text-decoration: none;
text-align:center
}
/* Menu items that have mouse over or focus have a blue background and white text */
ul.MenuBarVertical a:hover, ul.MenuBarVertical a:focus
{
background-color: #466C65;
color: #FFF;
}
/* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
ul.MenuBarVertical a.MenuBarItemHover, ul.MenuBarVertical a.MenuBarItemSubmenuHover, ul.MenuBarVertical a.MenuBarSubmenuVisible
{
background-color: #466C65;
color: #FFF;
}
/* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarVertical a.MenuBarItemSubmenu
{
background-image: url(SpryMenuBarRight.gif);
background-repeat: no-repeat;
background-position: 95% 50%;
}
/* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarVertical a.MenuBarItemSubmenuHover
{
background-image: url(SpryMenuBarRightHover.gif);
background-repeat: no-repeat;
background-position: 95% 50%;
}
/* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
ul.MenuBarVertical iframe
{
position: relative;
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.MenuBarVertical li.MenuBarItemIE
{
display: inline;
float: left;
background: #83AEA5;
}
}
#MenuBar1 {
color: #0000FF;
}
nowthatyouarea {
font: Verdana;
font-size: 13px;
color: #000;
}