I've got 3 divs floating left inside a container div. The container has a width of 100%, the 3 inside divs have a width of 33%. There is no padding/margin on the divs or body, yet still the container div isn't spanning the entire page, forcing the inside divs to overlap. Please help, I can't seem to find an answer here that works for me.
#container {
width: 100%;
margin: 0 auto;
padding: 0;
}
#left,
#middle,
#right {
float: left;
width: 33%;
}
body {
margin: 0;
padding: 0;
width: 100%;
}
<div id="container">
<div id="left">
<img src="http://placehold.it/100x350" height="350" alt="" />
</div>
<div id="middle">
<img src="http://placehold.it/100x350" height="350" alt="" />
</div>
<div id="right">
<img src="http://placehold.it/100x350" height="350" alt="" />
</div>
</div>