I have a div in my page which I want to be split into 2 columns of equal width. Currently, I have a container div for the body of the site and then two divs within the container. One is floated left and the other floated right within the container (both are 50% width). It looks how I want it to, other than there is very little gap between the two divs, making it hard to read the text within them. I have tried adding both padding and margins to either (and both) of the left and right divs but nothing seems to space them apart.
How can I increase the gap between them? Or, is there a better way of splitting a div into 2 columns?
<div id="body">
<div id="body_left">
<p>Body text left......</div><!--end body_left-->
<div id="body_right">
Body text right...
</div><!--end body_right-->
</div><!-- end body-->
#body {
margin-top: 1em;
padding-left: 7px;
padding-right: 7px;
padding-bottom: 7px;
padding-top: 5px;
border: 1px solid #666;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
}
#body_left {
float: left;
width: 50%;
}
#body_right {
float: right;
width: 50%;
}
EDIT--
Thought a diagram may help explain what I mean. The light blue is the container div and the pink and dark blue ones are the 50% width ones. Basically, I want the gap (where the arrow is pointing) to be bigger.