Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Spry rollover stays lit and blocks out type

Status
Not open for further replies.

fauntleroy

Technical User
May 21, 2008
46
US
Hi there .... I'm having a tough time with a horizontal spry menu I've created. The menu behaves fine on a Mac and it also seems fine on Vista (which can run on my Mac) but Windows XP users are seeing that when they roll their mouse over a menu item (like "who we are" for instance), the menu item block lights up (which is good) but it makes the words( like "who we are") disappear, and furthermore, it stays disappeared.

I believe it's a HOVER issue, but I just can't figure it out. Any assistance would be greatly appreciated

Here's the code if anyone's interested ....

@charset "UTF-8";

/* SpryMenuBarHorizontal.css - version 0.6 - Spry Pre-Release 1.6 */

/* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */

/*******************************************************************************

LAYOUT INFORMATION: describes box model, positioning, z-order

*******************************************************************************/

/* The outermost container of the Menu Bar, an auto width box with no margin or padding */
ul.MenuBarHorizontal
{
width: 32.2em;
margin: auto;
margin: 0;
padding: 0;
list-style-type: none;
font-size: 100%;
cursor: default;
width: auto;
}
/* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: */
ul.MenuBarActive
{
z-index: 1000;
}
/* Menu item containers, position children relative to this container and are a fixed width */
ul.MenuBarHorizontal li
{
margin: 0;
padding: 0;
list-style-type: none;
font-size: 8pt;
position: relative;
text-align: center;
cursor: pointer;
width: 8m;
float: left;
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #FFFFFF;
}
/* Submenus should appear below their parent (top: 0) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
ul.MenuBarHorizontal ul
{
margin: 0;
padding: 1;
list-style-type: none;
font-size: 100%;
z-index: 1020;
cursor: default;
width: 8.2em;
position: absolute;
left: -1000em;
}
/* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */
ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
{
left: auto;
}
/* Menu item containers are same fixed width as parent */
ul.MenuBarHorizontal ul li
{
width: 12em;
left: -43px;
background-color: #281E50;
color: #281E50;
outline-style: solid;
padding-top: 3px;
outline-width: thin;
border: #281E50;
border-top-style: none;
outline-color: #281E50;
}
/* Submenus should appear slightly overlapping to the right (95%) and up (-5%) */
ul.MenuBarHorizontal ul ul
{
position: absolute;
margin: -5% 0 0 95%;
}
/* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */
ul.MenuBarHorizontal ul.MenuBarSubmenuVisible ul.MenuBarSubmenuVisible
{
left: auto;
top: 0;
width: 22px;
z-index: 456;
}
/* Menu items are a light gray block with padding and no text decoration */
ul.MenuBarHorizontal a
{
display: block;
cursor: default;
background-color: #302657;
color: #FFFFFF;
text-decoration: none;
padding-top: 0.2em;
padding-right: 0.7em;
padding-bottom: 0.2em;
padding-left: 0.7em;
text-align: left;
}
/* Menu items that have mouse over or focus have a blue background and white text */
ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus
{
color: #FAFAFA;
}
/* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
ul.MenuBarHorizontal a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible
{
background-color: #3A387A;
color: #FFF;
}

/*******************************************************************************

SUBMENU INDICATION: styles if there is a submenu under a given menu item

*******************************************************************************/

/* 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.MenuBarHorizontal a.MenuBarItemSubmenu
{
background-repeat: no-repeat;
background-position: 95% 50%;
}
/* 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.MenuBarHorizontal ul a.MenuBarItemSubmenu
{
background-repeat: no-repeat;
background-position: 95% 50%;
width: 13px;
max-width: 13px;
}
/* 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.MenuBarHorizontal a.MenuBarItemSubmenuHover
{
background-repeat: no-repeat;
background-position: 95% 50%;
}

/*******************************************************************************

DESIGN INFORMATION: describes color scheme, borders, fonts

*******************************************************************************/

/* Submenu containers have borders on all sides */
ul.MenuBarHorizontal ul
{
border: 1px solid #CCC;
}
/* 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.MenuBarHorizontal ul a.MenuBarItemSubmenuHover
{
background-image: url(SpryMenuBarRightHover.gif);
background-repeat: no-repeat;
background-position: 95% 50%;
}

/*******************************************************************************

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;
}
}
 
Hi,
just to let you know, your menu works fine using the following browsers :-

IE7, Netscape 9.0, Opera 8, Firefox 2.6, Google Chrome Beta,

All running on Windows XP Home edition. What browser is causing the problem ? Also there are 8 errors and 40 warnings when your css is validated.

Datamasher
 
Thanks for your replies! The browser having the trouble I'm told, is IE6 on Windows XP.

Datamasher ... A lot of the errors, I think all but one, are because I had to remove the "ALT" tags from all the website images. I know I shouldn't ... and I didn't want to ... but the client complained that when they rolled over the images, a "description" would pop up. I'll lay odds that most websites they visit do that .... but because they were scrutinizing their own site so carefully, they felt it was driving them crazy. And yes I know they could change their browser's preferences to make that stop happening, but some folks don't want to hear that. They just want it to stop. This issue could certainly be a topic of its own.

This is very difficult to troubleshoot because it works on most browsers. I've since noticed that even extensions that I could purchase for $90 don't even promise they'll work for every browser.
 
Unfortunately, I cannot help you with your problem, because I don't have a copy of IE6 here, but if Dan says it works satisfactorily, then maybe you could simply add a special IE6 stylesheet to get rid of the gap.

For your alt problems, much better way of solving the problem is by adding [tt]title=""[/tt] as an attribute to the tag. That way IE (which is the only browser that I know that uses alt attribute as a tool tip) will show no description, because title attribute overrides alt attribute in the way of tool tip. As an alternative text for browsers that cannot show images, alt attribute will still be displayed.

___________________________________________________________
[small]Do something about world cancer today: Comprehensive cancer control information at PACT[/small]
 
It looks like a visited links color issue to me - they don't disappear - they're just very hard to read. (IE6 XP) - if I have time later I'll try to track down the specifics.

Greg
People demand freedom of speech as a compensation for the freedom of thought which they seldom use. Kierkegaard
 
Thanks Traingamer. I think you're correct about them taking on the colors of a visited link. Unfortunately, I didn't explain my problem correctly at the top of this post. That was the way I felt the client explained it to me ... but I guess you can see it and it seems the text links are the problem .... not the hovering box.

I'm going to repost this with my updated code and a more accurate title of the problem.

Thanks all!
 
Thanks Vragabond too for the ALT tag workaround. I'll give that a shot as well!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top