Solved

CSS Dropdown menu

Posted on 2013-02-01
4
239 Views
Last Modified: 2013-02-16
Is there an example on how to create a pure css menu that drops straight down, like an accordion?

<div id="top_menu">
	<nav>
		<ul>
			<li><a href="#">PRODUCTS</a>
				<ul>
					<li>AMPLIFIERS
						<ul>
							<li><a href="#">MicroPro 200</a></li>
							<li><a href="#">Aviator</a></li>
						</ul>
					</li>
					<li><a href="#">CABINETS</a></li>
					<li><a href="#">ACCESSORIES</a></li>
				</ul>
			</li>
			<li><a href="#">EXPERIENCE</a></li>
			<li><a href="#">PATRICK</a></li>
			<li><a href="#">CONTACT</a></li>
		</ul>
	</nav>
</div>

Open in new window

0
Comment
Question by:rgranlund
  • 3
4 Comments
 
LVL 3

Expert Comment

by:Pedro Chagas
ID: 38845539
Hi, Why you don't use jQuery?
Try this: http://jqueryui.com/accordion/

The best regards, JC
0
 
LVL 3

Expert Comment

by:Pedro Chagas
ID: 38845548
Try this one too: http://www.1stwebdesigner.com/freebies/jquery-accordion-menus-tutorials/, lots of examples.
jQuery is very easy to use.

~JC
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 38845610
I have not seen a pure CSS implementation of an accordion menu.  You need scripting for the effect.  However I will be listening in case there is a CSS implementation that I missed.

Cd&
0
 
LVL 3

Accepted Solution

by:
Pedro Chagas earned 500 total points
ID: 38845724
You have reason.
Use CSS3 is a big risk, because the browsers compatibility.
This example can help you:
http://csswizardry.com/2011/02/pure-css3-accordion/

~JC
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
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 …

830 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