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
Can I get a fresh set of eyes please?
Old 07-30-2007, 11:43 PM Can I get a fresh set of eyes please?
Webmaster Talker

Posts: 626
Trades: 0
I've been working on displaying some drop-down menus using the suckerfish CSS method. For some reason the nested UL keeps disappearing when you try to go down the list. If you are very careful and hover over the bottom border of the main UL, you can see it highlight the first Item in the list, but going any further down will make it disappear.

Can someone please take a quick look and see what I'm missing?

Here's the CSS:
HTML Code:
/* Drop down menu */
#mainlevel-toolbar {
   list-style: none;
   width: 100%;
   padding: 0 2%;
}

#mainlevel-toolbar li {
   float: left;
   position: relative;
   width: 16%;
}

#mainlevel-toolbar li:hover {
   background: url(../images/menu-bg-hover.gif) repeat-x top left;   
}

#mainlevel-toolbar li a {
   color: #ffffff;
   font-weight: bold;
   text-decoration: none;
   text-align: center;
   height: 30px;
   line-height: 30px;
   width: 100%;
   display: block;
}

#mainlevel-toolbar ul {
   display: none;
   position: absolute;
   top: 100%;
   left: 0;
   width: 180px;
   background-color: #505050;
}

#mainlevel-toolbar li > ul {
   top: auto;
   left: auto;
}

#mainlevel-toolbar li:hover ul {
   display: block;
}

#mainlevel-toolbar ul li {
   width: 100%;
   line-height: .6em;
}

#mainlevel-toolbar ul li a {
   text-align: left;
   width: 90%;
   padding: 0 5%;
}

#mainlevel-toolbar ul li:hover a {
   background-color: #AAAAAA;
   color: #000000;
}
Here's the HTML:
HTML Code:
		   <div id="toolbar">
		     <ul id="mainlevel-toolbar">
			    <li><a href="#">Home</a></li>
				<li>
					<a href="#">Programs</a>
					<ul>
					   <li><a href="#">Item 1</a></li>
					   <li><a href="#">Item 2</a></li>
					   <li><a href="#">Item 3</a></li>
					   <li><a href="#">Item 4</a></li>
					</ul>
				</li>
				<li><a href="#">Schedule</a></li>
				<li><a href="#">News</a></li>
				<li><a href="#">Information</a></li>
				<li><a href="#">About Us</a></li>
			</ul>
		   </div>
jim.thornton is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-31-2007, 12:33 AM Re: Can I get a fresh set of eyes please?
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,898
Name: Keith Marshall
Location: Connecticut
Trades: 0
It works in FF but not in IE6 for me.
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 07-31-2007, 12:36 AM Re: Can I get a fresh set of eyes please?
Webmaster Talker

Posts: 626
Trades: 0
I haven't got the csshover.htc file in there yet, that's why it isn't working in IE.

I'm trying it in FF 2.0 and it is disappearing as soon as I try and go down the list. Can you go all the way down?
jim.thornton is offline
Reply With Quote
View Public Profile
 
Old 07-31-2007, 01:05 AM Re: Can I get a fresh set of eyes please?
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,898
Name: Keith Marshall
Location: Connecticut
Trades: 0
Quote:
Originally Posted by zincoxide View Post
I'm trying it in FF 2.0 and it is disappearing as soon as I try and go down the list. Can you go all the way down?
Yes - But I used just the bare markup you provided without the use of doctype, html, head or body html tags
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 07-31-2007, 01:26 AM Re: Can I get a fresh set of eyes please?
Webmaster Talker

Posts: 626
Trades: 0
I'm using XHTML Strict.

Can you try that for me and see if it works for you?
jim.thornton is offline
Reply With Quote
View Public Profile
 
Old 07-31-2007, 10:34 PM Re: Can I get a fresh set of eyes please?
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
I'm not seeing the problem at all using XHTML 1.0 Strict. I can scroll down the sub-menu w/o it disappearing.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

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


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

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Can I get a fresh set of eyes please?
 

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.19134 seconds with 12 queries