<html>
<head>
  <title>Div example</title>
</head>
<body>

<style type="text/css"> 
.clear{
  clear: left;
}

.container {
  width: 300px;
  padding: 10px;
  border: 1px solid;
}

.left {
  float: left;
  width: 120px;
  padding: 10px;
  border: 1px solid;
  text-align: center;
}
</style>

<div class="container">
  <div class="clear"></div>
  
  <div class="left">
    1
  </div>
  
  <div class="left">
    2
  </div>
  <div class="clear"></div>
</div>

</body>
</html>