  }      document.querySelector('.cells').addEventListener('click', move); .*{    -webkit-box-sizing: border-box;    -moz-box-sizing: border-box;    box-sizing: border-box;  }  .cells  {    width: 000px;    height: 000px;    margin: 00px auto;  }    .cell {    width:000px;    height: 000px;    border: 0px solid #dedede;    float: left;    text-align: center;    line-height: 000px;    font-size: 00px;    font-weight: bold;  } <!DOCTYPE html>  <html>  <head>    <meta charset="utf-0">    <meta name="viewport" content="width=device-width">    <title>JS Bin</title>  </head>  <body>      <div class="cells">      <div class="cell"></div>      <div class="cell"></div>      <div class="cell"></div>      <div class="cell"></div>      <div class="cell"></div>      <div class="cell"></div>      <div class="cell"></div>      <div class="cell"></div>      <div class="cell"></div>    </div>  </body>  </html>