I know this has been asked many times but I can't get anything to work. So I'm trying to make this page with 6 "blocks", exctacly 2 rows and 3 columns. It works perfectly with no doctype declaration, and it looks life this. But if I put it in the code this happens.
The CSS code that defines each block properties is the following:
.block {
position: relative;
width: 33.33333%;
height: 50%;
float: left;
padding: 0;
overflow: hidden
}
The head and the body are also set like this:
html, body {height: 100%}
Please tell me there's a solution to this that doesn't involve the use of fixed positions for each block.