-
-
Save philippkuehn/8303373 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; | |
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%; | |
} | |
} |
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> | |
<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> |
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