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="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style>
  body {
      font-family: Ubuntu, Helvetica, Arial;
  }
  
  ul li {
      display: inline-block;
      margin: 0;
      padding: 0;
      width: 100px;
      height: 100px;
      line-height: 100px;
      text-align: center;
      background: #ddd;
  }
  ul li:nth-child(2n) {
      background: #f00;
      height: 80px;
    position: relative;
    top: 10px;
  }
  
  ul.collapsed {
    letter-spacing: -.31em;
      word-spacing: 0.05em;
  }
  
  ul.collapsed li {
    letter-spacing: normal;
  }
</style>
</head>
<body>
  
  <h1>Normal word space</h1>
  <ul>
      <li>One</li>
      <li>Two</li>
      <li>Three</li>
      <li>Four</li>
      <li>Five</li>
  </ul>
  
  <h1>Collapsed word space</h1>
  <ul class="collapsed">
      <li>One</li>
      <li>Two</li>
      <li>Three</li>
      <li>Four</li>
      <li>Five</li>
  </ul>
</body>
</html>
 
if (document.getElementById('hello')) {
  document.getElementById('hello').innerHTML = 'Hello World - this was inserted using JavaScript';
}
Output

This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers