In your CSS, float the first div by left or right. Float the second div by left or right same as first. Apply clear: left
or right
the same as the above two divs for the second div.
For example:
#firstDiv {
float: left;
}
#secondDiv {
float: left;
clear: left;
}