Created
August 1, 2013 16:31
-
-
Save meyerweb/6132996 to your computer and use it in GitHub Desktop.
Untitled
This file contains hidden or 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
section {margin: 2em 0; border: 2px dotted red;} | |
section div:first-child {background: silver;} | |
section div:last-child {background: cyan;} | |
section#flexbox {display: flex;} | |
section#flexbox div {flex: auto; width: auto;} | |
section#display {display: table;} | |
section#display div {display: table-cell;} |
This file contains hidden or 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
<!-- content to be placed inside <body>…</body> --> | |
<section id="flexbox"> | |
<div>This is a div.</div> | |
<div><ul><li>This is…</li><li>…another div with…</li><li>…a list.</li></ul></div> | |
</section> | |
<section id="display"> | |
<div>This is a div.</div> | |
<div><ul><li>This is…</li><li>…another div with…</li><li>…a list.</li></ul></div> | |
</section> |
This file contains hidden or 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 hidden or 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