Created
November 14, 2012 08:59
-
-
Save jelmerdemaat/4071080 to your computer and use it in GitHub Desktop.
A CodePen by Jelmer.
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="wrapper"> | |
<div>This can be anything.</div> | |
<div>This can be anything.</div> | |
<div>This can be anything.</div> | |
<div>This can be anything.</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
/* | |
Justified divs, attempt 1 | |
http://code.jelmerdemaat.nl/ |
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
.wrapper{ | |
width: 550px; | |
text-align: justify; | |
margin: 20px auto; | |
background: firebrick; | |
} | |
.wrapper div{ | |
background: white; | |
display: inline-block; | |
} | |
/* Only make things clearer */ | |
body{ margin: 0; font-family: sans-serif; font-size: 12px;} | |
.wrapper,.wrapper div{ padding: 5px; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment