Trying to do the following: two blocks of fixed width. The third is rubber and takes up the rest of the width. Inside it are three blocks with contents, which also occupies the entire width of this block, and the contents inside are aligned in the center vertically and horizontally.
But not very good. What's wrong?
div { border: 1px solid gray; } #container { width: 750px; height: 500px; } #first, #second, #third, #third-one, #third-two, #third-three { min-height: 100px; margin: 10px; } #first, #second { width: 250px; float: left; height: 500px; } #second:after { content: ""; display: table; clear: both; } #third { float: left; } <div id='container'> <div id='first'>first</div> <div id='second'>second</div> <div id='third'> <div id='third-one'>third-one</div> <div id='third-two'>third-two</div> <div id='third-three'>third-three</div> </div> </div> 