Solved

CSS Dropdown Menu

Posted on 2013-01-23
3
238 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
ID: 38811142
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
ID: 38811215
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
ID: 38811766
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 Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

726 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