I make simple http://jsfiddle.net/6KzXw/ with CSS:
.container {
  width: 50%;
  margin: 0 auto;
  padding: 2px;
  background: red;
}
.left {
  float: left;
  background: yellow;
}
.right {
  float: right;
  background: yellow;
}
and HTML:
<div class="container">
  <div class="left">To the left.</div>
  <div class="right">To the right.</div>
</div>
I wondering why area of container isn't red....
After search I found solution with overflow: hidden  but official docs about fix: http://www.w3.org/TR/CSS21/visufx.html make me cry when I try to understand how it work...
Can any explain why overflow: hidden is fix for surrounding problem with standard in mind?
 
     
     
     
     
    