<div class="float-left">Float Left</div>
<div class="float-right">Float Right</div>
<div>float: none;</div>
div {
  padding: 16px;
  width: 100px;
  text-align: center;
  font-family: monospace;
  border: 5px solid #666;
  background-color: #eee;
}

div.float-left { 
  float: left;
}

div.float-right { 
  float: right;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.