menue 2

Die index.html

<!DOCTYPE html>
    <head>
        <meta charset="utf-8">
        <title>CSS3 Accordion Menu von designyourweb.info</title>
        <link rel="stylesheet" href="html.css">
        <link rel="stylesheet" href="style.css">
    </head>
    <body>
		<div id = "wrapper">
        	<nav>
        		<ul>
        			<li id = "home">
        				<a href="#home">Home</a>
        			</li>
        			<li id = "ueber-uns">
        				<a href="#ueber-uns">Über uns</a>
        				<ul>
        					<li><a href="#">Wer wir sind</a></li>
        					<li><a href="#">Was wir machen</a></li>
        					<li><a href="#">Unsere Ziele</a></li>
        					<li><a href="#">Unser Team</a></li>
        				</ul>
        			</li>
        			<li id = "leistungen">
        				<a href="#leistungen">Leistungen</a>
        				<ul>
        					<li><a href="#">Webdesign</a></li>
        					<li><a href="#">Programmierung</a></li>
        					<li><a href="#">Online Marketing</a></li>
        					<li><a href="#">Suchmaschinenoptimierung</a></li>
        				</ul>
        			</li>
        			<li id = "referenzen">
        				<a href="#referenzen">Referenzen</a>
        				<ul>
        					<li><a href="#">Webseiten</a></li>
        					<li><a href="#">Themes & Templates</a></li>
        					<li><a href="#">Plugins</a></li>
        				</ul>
        			</li>
        			<li id = "kontakt">
        				<a href="#kontakt">Kontakt</a>
        				<ul>
        					<li><a href="#">Deutschland</a></li>
        					<li><a href="#">Amerika</a></li>
        					<li><a href="#">Spanien</a></li>
        				</ul>
        			</li>
        		</ul>
        	</nav>

            <div id = "content">
			<a href = "http://designyourweb.info/so-erstellst-du-ein-vertikales-
			css3-accordion-menu/346">
			So erstellst du ein vertikales CSS3 Accordion Menu </a> 
			von 
			<a href = "http://designyourweb.info">designyourweb</a></div>
        </div>
    </body>
</html>
CSS3 Accordion Menu von designyourweb.info

Die html.css

html {
    background-color: #EFEFEF;
}
a{
    text-decoration: none;
    color: #000;
}
div#wrapper {
    margin: 100px auto;
}
div#content {
    clear: both;

    margin-top: 100px;
}

Die style.css

nav {
    width: auto;
}
nav ul {
    padding: 0px;
    margin: 0px;

    -moz-box-shadow: 2px 2px 2px #dfdfdf;
    -webkit-box-shadow: 2px 2px 2px #dfdfdf;
    box-shadow: 2px 2px 2px #dfdfdf;

    border-right: 1px solid #DFDFDF;
    border-bottom: 1px solid #DFDFDF;
}
nav ul:after {
    clear: both;
    content: " ";
    display: block;
    font-size: 0;
    height: 0;
    visibility: hidden;
}
nav ul,nav ul li{
    background-color: #FAFAFA;
}
nav ul li {
    list-style: none;
    border-bottom: 1px solid #DFDFDF
}
nav ul li a {
    text-decoration: none;
    display: block;
    color: #333;
    padding: 14px 34px 14px 34px;
}
nav ul li#home:target a, nav ul li#home:target > ul li a{
    background-color: #E6DD00;
}
nav ul li#ueber-uns:target a, nav ul li#ueber-uns:target > ul li a{
    background-color: #8CB302;
}
nav ul li#leistungen:target a, nav ul li#leistungen:target > ul li a{
    background-color: #008C74;
}
nav ul li#referenzen:target a, nav ul li#referenzen:target > ul li a{
    background-color: #004C66;
}
nav ul li#kontakt:target a, nav ul li#kontakt:target > ul li a{
    background-color: #332B40;
}
nav ul li:target > a {
    color: #FAFAFA;
}
nav ul li:target > ul {
    max-height: 200px;
}
nav ul li ul{
    display: block;
    position: relative;
    padding: 0px;
    border: none;
    box-shadow: none;
    max-height: 0px;
    overflow: hidden;

    -webkit-transition: max-height 0.3s ease-out;
    -moz-transition: max-height 0.3s ease-out;
    -o-transition: max-height 0.3s ease-out;
    -ms-transition: max-height 0.3s ease-out;
    transition: max-height 0.3s ease-out;
}
nav ul li ul li{
	float: none;
    display: block;
    border: none;
}
nav ul li ul li a {
    padding-left: 44px;
    color: #FAFAFA;
}
nav ul li ul li a:hover{
	color: #333;
	background-color: #FAFAFA !important;
}

Quelle: http://designyourweb.info/so-erstellst-du-ein-vertikales-css3-accordion-menu/914