#box1{ background-color: red; width: 113px; height: 207px; position: absolute; top: 0px; left: 0px; } #box2{ background-color: yellow; width: 93px; height: 38px; position: absolute; top: 0px; left: 113px; } #box3{ background-color: magenta; width: 93px; height: 107px; position: absolute; top: 38px; left: 113px; } #box4{ background-color: cyan; width: 93px; height: 107px; position: absolute; top: 145px; left:113px; } #box5{ background-color: green; width: 113px; height: 45px; position: absolute; top: 207px; left: 0px; } #box6{ background-color: purple; width: 166px; height: 45px; position: absolute; top: 252px; left: 0px; } #box7{ background-color: gray; width: 40px; height: 45px; position: absolute; top: 252px; left: 166px; }