Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!doctype html>
<html>
<head>
<meta charset=utf-8>
<title>JS Bin</title>
<!--[if IE]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<style>
  article, aside, figure, footer, header, hgroup, 
  menu, nav, section { display: block; }
  
  .pages > .page:target ~ .page:last-child, .pages > .page {
    display: none;
  }
  
  /* :last-child works, but for some reason .page:last-child will not */
  .pages > :last-child, .pages > .page:target {
    display: block;
  }
</style>
</head>
<body>
  <!-- simply '#', or some other non-existent target, will show the last element -->
  <a href="#">Home</a>
  <a href="#wherever">Wherever</a>
  <a href="#foo">Foo</a>
  
  <div class="pages">
    <div class="page" id="wherever">
      <h2>Lorem ipsum</h2>
      <p>Phasellus in quam ut elit faucibus fermentum. Aliquam interdum vestibulum pellentesque. Mauris aliquet condimentum justo sit amet imperdiet. Curabitur faucibus sodales tellus ut euismod.</p>
    </div>
    <div class="page" id="foo">
      <h2>Foo</h2>
      <p>The latest in Foo, with 80% more Foo than anyone else!</p>
    </div>
    <div class="page" id="home">
      <h2>Important company site.</h2>
      <p>Blah blah blah.</p>
      <p>We're the leading leader for everyone in everything, everywhere.</p>
      <p>Blah blah blah blah blah blah blah blah blah.</p>
    </div>
  </div>
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers