Skip to content

Instantly share code, notes, and snippets.

@philippkuehn
Forked from anonymous/dabblet.css
Created January 7, 2014 17:48
Show Gist options
  • Save philippkuehn/8303373 to your computer and use it in GitHub Desktop.
Save philippkuehn/8303373 to your computer and use it in GitHub Desktop.
Untitled
* {
margin: 0;
padding: 0;
font-weight: bold;
text-align: center;
box-sizing: border-box;
}
.wrapper {
overflow: hidden;
}
.wrapper > *,
.header,
.footer {
padding: 20px;
}
.header {
background: tomato;
}
.footer {
background: lightgreen;
}
.main {
text-align: left;
background: deepskyblue;
}
.aside-1 {
background: gold;
}
.aside-2 {
background: hotpink;
}
@media all and (min-width: 800px) {
.aside {
float: left;
width: 25%;
padding-bottom: 9999px;
margin-bottom: -9999px;
}
.main {
float: left;
width: 50%;
}
}
<header class="header">Header</header>
<div class="wrapper">
<aside class="aside aside-1">Aside 1</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>
<aside class="aside aside-2">Aside 2</aside>
</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