You might consider using float
instead of left
and right
:
<div class="example example-left">example left</div>
<div class="example example-right">example right</div>
div.example {
width:50%;
background-color:red;
background-repeat:repeat-x;
}
div.example.example-left {
float:left;
}
div.example.example-right{
float:right
}