Flexible 100% layout
by secretgspot
HTML
<div class="banner"></div>
<div class="content">
<div class="largeLink"></div>
<div class="groupOfLinks">
<div class="smallLink"></div>
<div class="smallLink"></div>
<div class="smallLink"></div>
<div class="smallLink"></div>
</div>
</div>
CSS
html,
body {
height: 100%;
}
div {
box-shadow: inset 0 0 0 1px red;
}
div.banner {
background: hsla(0,50%,50%,.25);
height: 66%;
}
div.content {
background: hsla(0,50%,50%,.25);
font-size: 0;
height: 34%;
}
div.largeLink {
background: hsla(0,50%,50%,.25);
display: inline-block;
font-size: 100%;
height: 100%;
width: 50%;
}
div.groupOfLinks {
background: hsla(0,50%,50%,.25);
display: inline-block;
height: 100%;
width: 50%;
}
div.smallLink {
background: hsla(0,50%,50%,.25);
display: inline-block;
font-size: 100%;
height: 50%;
width: 50%;
}
div.smallLink:nth-child(3n-2) {
background: hsla(0,50%,50%,.5);
}