Created
November 29, 2013 09:15
-
-
Save anonymous/7703273 to your computer and use it in GitHub Desktop.
Untitled
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* { | |
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; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// alert('Hello world!'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"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