<div class="sidebar"><h2>Sidebar</h2></div>
<div class="main">
<h2>Main</h2>
<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>
<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>
<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>
</div>
<div class="footer"><h2>Footer</h2></div>
<div class="header"><h2>Header</h2></div>
<div class="ads">
<h2>Ads</h2>
<img src="http://lorempixel.com/200/200/" />
<img src="http://lorempixel.com/200/200/" />
<img src="http://lorempixel.com/200/200/" />
</div>
@import "compass/css3";
html, body {
height: 100%;
}
body {
padding: 10px;
display: -ms-grid;
-ms-grid-columns: 200px 1% 1fr 1% 100px;
-ms-grid-rows: auto 1% 1fr 1% auto;
}
.content {
background: beige;
padding: 0;
}
.header {
background: tomato;
-ms-grid-column-span: 5;
-ms-grid-row: 1;
}
.footer {
background: deepskyblue;
}
.footer {
background: deepskyblue;
-ms-grid-row: 5;
-ms-grid-column-span: 5;
}
.main {
background: orangered;
-ms-grid-column: 3;
-ms-grid-row: 3;
}
.sidebar {
background: lightgreen;
-ms-grid-column: 1;
-ms-grid-row: 3;
}
.ads {
background: gold;
-ms-grid-column: 5;
-ms-grid-row: 3;
}
h2 {
margin-top: 0;
}
img {
display: block;
max-width: 100%;
width: auto;
margin: 0 auto 10px;
}
div {
color: white;
padding: 10px;
}
p {
margin: 0 0 1em 0;
}
View Compiled
This Pen doesn't use any external CSS resources.