Something like that:
CSS
<style type="text/css">
#primary {
width: 100%;
}
.secondary {
width: 50%;
}
.leftcolumn {
float: left;
text-align: left;
}
.rightcolumn {
float: right;
text-align: right;
}
</style>
HTML
<div id="primary">
<div class="secondary leftcolumn">
<p>This will be on the left</p>
</div>
<div class="secondary rightcolumn">
<p>This will be on the right</p>
</div>
</div>
Although I would change leftcolumnand rightcolumnfor something concrete for the content that each will contain (in favor of the semantic approach to CSS naming rather than structural).
Donut source
share