/* Source - https://stackoverflow.com/a/15374994 Posted by Danilo Kobold, modified by community. See post 'Timeline' for change history Retrieved 2026-02-01, License - CC BY-SA 4.0 */ #header { width: 100%; background-color: red; height: 30px; } #container { width: 300px; background-color: #ffcc33; margin: auto; } #first { width: 100px; float: left; height: 300px; background-color: blue; } #second { width: 200px; float: left; height: 300px; background-color: green; } #clear { clear: both; }