Jump to content

Suckerfish Dropdowns


brittny85

Recommended Posts

I know that I just posted recommending that someone else use Suckerfish dropdowns... but I have a problem that I haven't figured out.  I'm trying to implement dropdowns on a website with 6px of white space between the bottom of the main menu and the submenu.  I've tried adding padding and margins and changing font sizes and nothing that I've come up with has worked.  What is the top property of the submenus being set against? 

 

Here's the relevant css:

#topnav { margin: 50px 5px 0px -49px; width: 530px; float:right; padding: 0px ; text-align:center;}
#topnav ul { margin: 31px 0px 0px -36px; width: 530px; float:right; list-style-type: none; padding: 0px; text-align:center;}
#topnav ul li { text-transform:uppercase; float: right;  margin: 0px 0px 0px 1px; color:#818386; width: 100px; text-align:center; padding: 5px 0px 1px 0px; font-weight:bold; font-size:9px; background-repeat:no-repeat; border:#f00 1px solid;}
#topnav ul li a { width: 100px; display:block;}
#topnav ul li ul{margin: 0px 0px 0px -13px; left: -50000px; padding: 5px 0px 5px 5px; position: absolute; text-align: left; background: #ffffff; border:solid #d4d5d7 1px; z-index: 200; width:120px;}
#topnav ul li ul li { text-align: left; height: 15px; color:#6d6f71; font-size: 9px; font-weight:normal; display:list-item; list-style-image:none; padding: 3px 0px 3px 10px; margin: 0px; float: right; width:115px;}
#topnav li ul li a {background: #ffffff; padding: 0px; color:#6d6f71; text-transform:none; width:15px; height: 15px; display: block; width:115px;}
#topnav li:hover ul, #topnav li.sfhover ul {left: auto;}
#topnav li ul li:hover a, #topnav li ul li.sfhover a { color:#ffffff;}

 

And some of the relevant html (I shortened the list so that you didn't have to look through redundant examples of list items):

<div id="topnav">
<ul class="topnav">
	<li id="topnav_company" class="tab_down"><a id=topnav_tab href="/company">Company
		<ul id="menu_company" >
			<li id="company_story" ><a href="/company/story">The Code Story</a></li>
			<li id="company_manufacturing" ><a href="/company/manufacturing">Manufacturing</a></li>
			<li id="company_board" ><a href="/company/board">Scientific Advisory Board</a></li>
		</ul>
	</a></li>
	<li id="topnav_support" class="tab_up_on"><a id=topnav_tab href="/support">Support
		<ul id="menu_support" >
			<li id="support_guarantee" ><a href="/support/guarantee">Our Guarantee</a></li>
			<li id="support_faq" ><a href="/support/faq">FAQ</a></li>
			<li id="support_contact" ><a href="/support/contact">Contact Us</a></li>
			<li id="support_privacy" ><a href="/support/privacy">Privacy Policy</a></li>
			<li id="support_terms" ><a href="/support/terms">Terms of Use</a></li>
		</ul>
	</a></li>
</ul>
</div>

 

Any help would be greatly appreciated!  Thanks!

-Brittny

Link to comment
https://forums.phpfreaks.com/topic/75381-suckerfish-dropdowns/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.