I want to divide my page into four equal parts, each of same height and width (50-50%).
I don\'t want to use JavaScript. I want blocks (
HTML
CSS
html, body { height: 100%; padding: 0; margin: 0; } div { width: 50%; height: 50%; float: left; } #div1 { background: #DDD; } #div2 { background: #AAA; } #div3 { background: #777; } #div4 { background: #444; }
Demo at http://jsfiddle.net/CRSVU/