Skip to content

Instantly share code, notes, and snippets.

Created November 29, 2013 09:15
Show Gist options
  • Save anonymous/7703273 to your computer and use it in GitHub Desktop.
Save anonymous/7703273 to your computer and use it in GitHub Desktop.
Untitled
* {
margin: 0;
padding: 0;
font-weight: bold;
text-align: center;
}
.wrapper {
overflow: hidden;
}
.wrapper > *,
.header,
.footer {
padding: 20px;
}
.header {
background: tomato;
}
.footer {
background: lightgreen;
}
.main {
text-align: left;
background: deepskyblue;
}
.aside {
padding-bottom: 9999px;
margin-bottom: -9999px;
}
.aside-1 {
background: gold;
}
.aside-2 {
background: hotpink;
}
@media all and (min-width: 800px) {
.aside { width: 25%; }
.aside-1 { float: left; }
.aside-2 { float: right; }
.main {
overflow: hidden;
}
}
<header class="header">Header</header>
<div class="wrapper">
<aside class="aside aside-1">Aside 1</aside>
<aside class="aside aside-2">Aside 2</aside>
<article class="main">
<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>
</article>
</div>
<footer class="footer">Footer</footer>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment