Created
November 26, 2012 22:45
-
-
Save soal/4151166 to your computer and use it in GitHub Desktop.
HTML elements justify
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
<div id="wrapper"> | |
<div class="elem"></div> | |
<div class="elem"></div> | |
<div class="elem"></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
#wrapper:after { | |
content: "1"; | |
margin-left: 100%; | |
height: 1px; | |
overflow: hidden; | |
display: inline-block; | |
/*inline-block fix for IE 6-7*/ | |
*display: inline-block; | |
*zoom: 1; | |
} | |
.elem { | |
display: inline-block; | |
/*inline-block fix for IE 6-7*/ | |
*display: inline-block; | |
*zoom: 1; | |
} | |
/* Cure for IE6-7*/ | |
#wrapper { | |
text-justify: newspaper; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment