How to mark up the page without javascript?

Both HTML elements (div1, div2) must to have fixed size.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You have to work with the CSS attributes
position,top,bottom,left,rightandheight.E.g.
http://jsfiddle.net/GPHEx/1/
position:absolutelets you determine the layout in pixels and percent (roughly speaking).left:0; right:0make it full-width.top:0aligns a div to the upper edge.bottom:0aligns a div to the lower edge.height:42pxandtop:42pxdefine the tiled layout.Vertical example:
Example with four tiles:
Notice how
top+heightresp.left+widthwork together.You could have more tiles as well by adding the previous height to the next top.
With
overflowyou can define what should happen if there is too much content.overflow:autoadds a scrollbar to the div if needed.overflow:hiddenwould crop it.