<div>
<div class="square float-left">floating left</div>
<div class="square float-right">floating right</div>
</div>
.square {
width: 150px;
height: 150px;
background: #000;
color: white;
}
.float-left {
float: left;
}
.float-right {
float: right;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.