Created
March 30, 2012 14:36
-
-
Save Swizec/2251967 to your computer and use it in GitHub Desktop.
The first commented line is your dabblet’s title
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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
body { | |
min-height: 100%; | |
} | |
#main { | |
display: box; | |
width: 100%; | |
} | |
#main div { | |
flex-pack: center; | |
flex: 1; | |
} | |
#main div:nth-child(2) { | |
flex: 2; | |
} | |
#main div img { | |
width: 100%; | |
} |
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
<!-- content to be placed inside <body>…</body> --> | |
<div id="main"> | |
<div>lorem ipsum </div> | |
<div><img src="http://www.stfc.ac.uk/resources/image/RosDustLge.jpg" /></div> | |
<div>lorem lipsum</div> | |
</div> |
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","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment