CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 26th, 2012, 10:43 AM
thatjohnpaul thatjohnpaul is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2012
Posts: 1 thatjohnpaul User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 m 8 sec
Reputation Power: 0
Dropdown Navigation

Hi, I was wondering if someone could help me with a dropdown navigation bar I've coded. It's all CSS. The problem is, even though I have the overflow hidden, when you hover on a topic that has sub-links, it pushes everything else down. You can see it at http://thestreetlight.net/clients/thearmoire. Or, I'll just copy and paste the code here if you prefer to look at it that way. Thanks in advance!

Code:
/* Navigation */
/* ---------------------------------------------------------- */

#navi {
	width: 620px;
	text-align: center;
	text-transform: lowercase;
	font-family: 'Muli', Arial, sans-serif;
	font-size: 13px;
	letter-spacing: 1px;
	color: #fff;
	padding: 0;
	margin: 0;
}

ul#navi a {
	text-decoration: none;
	color: #cacaca;
	background-color: #fff;
	padding: 3px 7px 3px 7px;
}

/* bg was #ede0cb */

ul#navi a:hover {
	text-decoration: none;
	color: #fff;
	background-color: #f4e0c1;
}


ul#navi {
	width: 620px;
	list-style: none;
	padding: 0 0 0 70px;
	margin: 0 auto;
}

ul#navi li {
	display: inline;
	list-style: none;
	float: left;
	padding: 0;
	margin: 4px;
}

ul#navi li ul {
	display: none;
}

ul#navi li a {
	display: block;
	text-decoration: none;
}

ul#navi li:hover ul {
	display: block;
	text-align: left;
}

ul#navi li:hover li {
	float: none;
	text-align: left;
}

ul#navi:hover {
	width: 620px;
}

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Dropdown Navigation

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap