Created
October 27, 2013 19:45
-
-
Save jklm313/7187048 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
* { | |
margin: 0; | |
padding: 0; | |
box-sizing: border-box; | |
position: relative; | |
} | |
.container { | |
display: flex; | |
width: 600px; | |
text-align: center; | |
} | |
.box { | |
flex-grow: 1; | |
border: 1px solid; | |
} | |
.center { | |
flex-grow: 0; /* to get the box to wrap closely around the text */ | |
color: white; | |
background-color: #444; | |
} | |
.left {background-color: lightgreen} | |
.right {background-color: indianred;} |
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
<div class='container'> | |
<div class='box left'></div> | |
<div class='box center'>enter text here to see this box grow!</div> | |
<div class='box right'></div> | |
</div> |
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":"separate","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