Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-12-2011, 12:25 PM   PM User | #1
dealwi8me
New Coder

 
Join Date: May 2003
Posts: 26
Thanks: 1
Thanked 0 Times in 0 Posts
dealwi8me is an unknown quantity at this point
Horizontal drop down menu

Hello,

I have this code for a horizontal drop down menu but the problem is that sub menu appears on top of menu.

Can someone help me to change the level 2 css in order to appear in the bottom of level 1?

Thank you in advance.

Code:
#access .menu-header,
div.menu {
	font-size: 13px;
	margin-left: 0px;
	width: 1000px;
}
#access {
	display: block;
	float: left;
	width: 1000px;
	position: absolute;
	border-top: 1px #ffffff solid;
	border-bottom: 1px #ffffff solid;
	background-color: #999;
	margin-right: auto;
	margin-bottom: 0;
	margin-left: auto;
	bottom: 0px;
}

#access a {
	width: 123px;
	font-size: 1em;
	color: #FFF;
	font-weight: bold;
	padding-top: 0px;
	padding-right: 10px;
	padding-bottom: 0px;
	padding-left: 10px;
	text-align: center;
}

#access a span {
	color: #999999;
	font-size: 0.9em;
	text-transform: lowercase;
	font-weight: normal;
	display: block;
}



#access ul li.current_page_item > a, #access ul li.current-menu-ancestor > a, #access ul li.current-menu-item > a, #access ul li.current-menu-parent > a {
	color: #fff;
	background: #b9d755;
}

#access ul li.current_page_item > a span, #access ul li.current-menu-ancestor > a span, #access ul li.current-menu-item > a span, #access ul li.current-menu-parent > a span {
	color: #fff;
	background: #b9d755;
}
#access li:hover > a, #access ul ul :hover > a, #access li:hover > a span, #access ul ul :hover > a span {
background: #b9d755;
color: #fff;
}
#access ul ul {
top: 0px;
left: 0;
width: 123px;
}
#access ul ul li {
min-width: 123px;
}
#access ul ul a {
	background: #4da9ca;
	color: #fff;
	width: 123px;
	padding-top: 0px;
	padding-right: 10px;
	padding-bottom: 0px;
	padding-left: 10px;
}
dealwi8me is offline   Reply With Quote
Old 09-12-2011, 03:33 PM   PM User | #2
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,689
Thanks: 158
Thanked 2,184 Times in 2,171 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
Try
Code:
#access ul ul {
top: 1.5em;/* adjust the value, if required */
left: 0;
width: 123px;
}
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
abduraooft is offline   Reply With Quote
Old 09-13-2011, 10:15 AM   PM User | #3
dealwi8me
New Coder

 
Join Date: May 2003
Posts: 26
Thanks: 1
Thanked 0 Times in 0 Posts
dealwi8me is an unknown quantity at this point
thank you that worked for me!
dealwi8me is offline   Reply With Quote
Reply

Bookmarks

Tags
drop down menu, horizontal menu, menu

Jump To Top of Thread


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:22 AM.


Advertisement
Log in to turn off these ads.