Solved

CSS Dropdown Menu

Posted on 2013-01-23
3
230 Views
Last Modified: 2013-02-13
I'm normally really good at this but for some reason, I can't get it to work correct.
I have a vertical menu.  At the first ul ul I need <li>to drop straight down and push all of the other menu choices down. However, at the third ul /  <ul><ul><ul> I need the li's to push out to the right.  Can someone give me the brief CSS to make this happen.

<ul>
	<li>ONE</li>
	<li>TWO	
		<ul>
			<li>TWO A</li>
				<ul>
					<li>TWO B</li>
					<li>TWO BB</li>
					<li>TWO BBB</li>
				</ul>
			<li>TWO AA</li>
		</ul>
	</li>
	<li>THREE</li>
	<li>FOUR</li>
</ul>

Open in new window

0
Comment
Question by:rgranlund
  • 2
3 Comments
 
LVL 53

Expert Comment

by:COBOLdinosaur
Comment Utility
You are not showing the CSS so I will have to make a guess.  The part that needs to push out to the right needs either display:inline or display:inline-block


Cd&
0
 
LVL 7

Author Comment

by:rgranlund
Comment Utility
This is all I have.  Can you add a littl more to it so the first level drops down and then the next goes out to the right?

nav ul	{
	display:block;
	width:140px;
	padding:11px 0px 13px 0px;
}

nav li	{
	width:140px;
	display:inline;
	list-style:none;
}


nav ul li a	{
	height:10%;
	padding:0% 0% 0% 5%;
	color:#908f8f;
	font-family:Arial, Helvetica, sans-serif;
	font-size:1em;
	text-decoration:none;
	display:block;
}

nav ul li a:hover	{
	color:#ffffff;
}

nav ul ul  {
visibility:hidden:
}

Open in new window

0
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 500 total points
Comment Utility
nav ul ul ul>li {display:inline;}

perhaps.  It would probably easier if you posted a link so I could play with it.

Cd&
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

This article discusses four methods for overlaying images in a container on a web page
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now