Carmen: Navigationspunkt ausblenden

Beitrag lesen

Guten Morgen,

Warum verschwindet mein Schließen Button nicht? http://jsfiddle.net/oo74au6w/


a.nav-hide {
	display:none;
}

.nav-slider {
	display:none;
}

#nav-open:target .nav-slider,
#nav-open:target a.nav-hide {
	display:block;
}

#nav-open:target a.nav-show {
	display:none;
}

.metanav ul {
	margin:0;
	padding:0;
	list-style:none;
}

.metanav a {
	padding:1em;
	display:block;
	background:#efefef;
	margin-bottom:1px;
	color:#000;
	text-decoration:none;
}

.metanav a:active,
.metanav a:hover {
	background:#999;
}


  <div id="nav-open">
      <nav class="metanav">
  	<a href="#nav-open" class="nav-show">Menü öffnen</a>
  	<a href="#nav-closed" class="nav-hide">Menü schließen</a>
    <ul>
      <li class="nav-slider"><a href="#">Startseite</a></li>
      <li class="nav-slider"><a href="#">Moderator</a></li>
      <li class="nav-slider"><a href="#">Archiv</a></li>
      <li class="nav-slider"><a href="#">Impressum</a></li>
    </ul>
  </nav>
</div>