Skip to content
  • Unwatch
  • Fork



SSH clone URL

Subversion checkout URL

You can clone with HTTPS, SSH, or Subversion.

Clone in Desktop Download ZIP
tree: 869f534ade
Mathias Bynens mathiasbynens
26 lines (26 sloc) 0.728 kb
<!DOCTYPE html>
<title>menu mockup</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<style type="text/css">
.show {display: none; }
.hide:focus + .show {display: inline; }
.hide:focus { display: none; }
.hide:focus ~ #list { display:none; }
@media print { .hide, .show { display: none; } }
<p>Here's a list</p>
<a href="css-menu-ex1.html#" class="hide">[hide]</a>
<a href="css-menu-ex1.html#" class="show">[show]</a>
<ol id="list">
<li>item 1</li>
<li>item 2</li>
<li>item 3</li>
<p>How about that?</p>
Jump to Line
Something went wrong with that request. Please try again.