Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 03-03-2010, 02:05 AM Hover Menu Issue
bige2533's Avatar
Skilled Talker

Posts: 79
Name: Eric
Location: Colorado
Trades: 1
I'm trying to get the navigation menu on the following two pages to work similarly:

http://www.trailsticker.com

and

link removed

Right now, I'm seeing an issue with the hover menu not working properly in IE8 for the cafepress site. It works in IE8 at the trailsticker site. And both pages work properly in firefox.

Any idea on what may be the problem? Below is the CSS for the hover menu.

Code:
/* navigation hover menu */
#menu
{
    width: 100%; /* set width of menu */
    color:White;
    padding: 5px 0px 5px 0px;
    font-size:14px;
} 
#menu ul
{ /* remove bullets and list indents */
    list-style: none;
    margin: 0;
    padding: 0;
}
/* style, color and size links and headings to suit */
#menu a
{
    font: verdana,geneva,arial,helvetica,sans-serif;
    font-size:14px;
    display: block;
    margin: 0;
    color: White;
    background: #49CDE5;
    text-decoration: none;
}
#menu a.top
{
    background: #008000;
}
#menu a:hover
{
    text-decoration:underline;
    background: #49CDE5;
}
#menu li
{
    /* make the list elements a containing block for the nested lists */
    position: relative;
    z-index:500;
}
#menu li:hover
{
    background: #49CDE5;
}
#menu ul ul
{
    position: absolute;
    top: 0;
    left: 100%; /* to position them to the right of their containing block */
    width: 85%; /* width is based on the containing block */
    z-index:500;
}
div#menu ul ul,
div#menu ul li:hover ul ul
{display: none;}

div#menu ul li:hover ul,
div#menu ul ul li:hover ul
{display: block;}

div#menu ul ul ul,
div#menu ul ul li:hover ul ul
{display: none;}

div#menu ul ul li:hover ul,
div#menu ul ul ul li:hover ul
{display: block;}
__________________

Please login or register to view this content. Registration is FREE

Last edited by bige2533; 03-04-2010 at 01:29 AM..
bige2533 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-03-2010, 10:49 AM Re: Hover Menu Issue
mik
mik's Avatar
Experienced Talker

Posts: 31
Location: United Kingdom
Trades: 0
Your mark-up is badly structured at the Cafépress website. It should be:
HTML Code:
<html>
<head>
</head>
<body>
</body>
</html>
Not:
HTML Code:
<html>
<head>
<html>
<head>
</head>
</head>
<body>
<body>
</body>
</body>
<body>
</body>
</html>
</html>
Clean it up and it works.
mik is offline
Reply With Quote
View Public Profile
 
Old 03-03-2010, 11:35 AM Re: Hover Menu Issue
bige2533's Avatar
Skilled Talker

Posts: 79
Name: Eric
Location: Colorado
Trades: 1
Thanks, I've cleaned up the structure but still no luck with hover menu.
__________________

Please login or register to view this content. Registration is FREE
bige2533 is offline
Reply With Quote
View Public Profile
 
Old 03-03-2010, 03:07 PM Re: Hover Menu Issue
mik
mik's Avatar
Experienced Talker

Posts: 31
Location: United Kingdom
Trades: 0
The doctype should be declared before the html. The following on line 171
HTML Code:
<!--[if IE]><link rel="stylesheet" href="/content/css/iestyles.css" type="text/css" media="screen, projection"><![endif]-->
Should appear in the <head> section, not the <body> section.
mik is offline
Reply With Quote
View Public Profile
 
Old 03-03-2010, 04:21 PM Re: Hover Menu Issue
bige2533's Avatar
Skilled Talker

Posts: 79
Name: Eric
Location: Colorado
Trades: 1
I appreciate your help. There is a lot of html/scripts/etc that cafepress adds in to make the cart and product display work on their site. Unfortunately, I'm unable to remove that conditional statement. I tried adding it to the head so it was in both the head and html but it didn't make a difference. Just thought it would be a simple fix since this works in firefox but not IE. I'll try contacting Cafepress about their markup.
__________________

Please login or register to view this content. Registration is FREE
bige2533 is offline
Reply With Quote
View Public Profile
 
Old 03-03-2010, 05:13 PM Re: Hover Menu Issue
MattGoucher's Avatar
Skilled Talker

Posts: 64
Name: Matt
Location: California
Trades: 0
Your missing your doctype. Hover menus always get buggy without one. Give it a try
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Invalid Code On A New Website Is Like Having A New Car With A Broken Windshield
MattGoucher is offline
Reply With Quote
View Public Profile Visit MattGoucher's homepage!
 
Old 03-03-2010, 11:03 PM Re: Hover Menu Issue
bige2533's Avatar
Skilled Talker

Posts: 79
Name: Eric
Location: Colorado
Trades: 1
That's one thing I can't change due to Cafepress. I'm unable to add a doctype outside of the head or html. Using their interface. Is there a way to add a script in the head to declare the doctype?
__________________

Please login or register to view this content. Registration is FREE

Last edited by bige2533; 03-03-2010 at 11:09 PM..
bige2533 is offline
Reply With Quote
View Public Profile
 
Old 03-03-2010, 11:37 PM Re: Hover Menu Issue
bige2533's Avatar
Skilled Talker

Posts: 79
Name: Eric
Location: Colorado
Trades: 1
I've elected to eliminate the navigation menu from the cart/checkout page due to the issue. So, the original link won't appear to have the issue.
__________________

Please login or register to view this content. Registration is FREE
bige2533 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Hover Menu Issue
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.29558 seconds with 12 queries