the code is the following:
(CSS)
#container { border:1px dashed #000; overflow:hidden; } #content, #sidebar { float:left; width:50%;
You can do that by displaying the #container as table and displaying #content and #sidebar as table-cells:
#container
#content
#sidebar
#container { border:1px dashed #000; display: table; width: 100%; } #content, #sidebar { display: table-cell; width:50%; }
Check your updated Fiddle.