Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Flexbox Menu Example</title>
<style>
  ul {
    font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
    list-style-type: none;
    width: 300px;
    background-image: linear-gradient(top, whiteSmoke 0%,#EEE 100%);
    padding: 10px;
    box-shadow: 2px 2px 6px #aaa;
    display: flexbox;
    flex-wrap: wrap;
  }
  
  li {
    text-align: center;
    margin-right: 10px;
    margin-bottom: 10px;
    display: block;
    padding: 5px;
    border: 1px solid black;
    flex: 60px 1;
  }
  
  li:hover {
      box-shadow: inset 0 3px 5px 
rgba(0, 0, 0, .2);
  }
  
</style>
  
</head>
<body>
  <ul>
    <li>Home</li>
    <li>Shop</li>
    <li>About</li>
    <li>Contact Us</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