Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width">
    <title>JS Bin</title>
  </head>
  
  <body>
    <p>inline-block allows the span tags to stay "inline" while preserving height and width properties </p>
    <span class="box">one</span>
    <span class="box">two</span>
    <span class="box">three</span>
  </body>
</html>
 
.box {
  display: inline-block;
  height: 100px;
  width: 100px;
  background: #000000;
  border: 1px solid #000000;
  color: #ffffff;
  text-align: center;
}
Output

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

Dismiss x