Use float : left
, here is a simple example illustrating the usage of floats.
DEMO
Taking your case into account, this css oughta do the trick
#content {
float : left;
width: 580px;
height:auto;
}
#sidebar {
float : left;
width: 270px;
height:auto;
float:right;
}
Provided you have a container with a width greater than the sum of the widths of the #sidebar
and the #content
elements. If the container width is lesser, one will appear below the other as shown in the demo.