Created
October 12, 2013 03:15
-
-
Save owlsky/6945364 to your computer and use it in GitHub Desktop.
perfectly-justified-css-grid-technique-using-inline-block
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{ | |
width: 550px; | |
text-align: justify; | |
background: firebrick; | |
font-size: 0; | |
font-size: 12px\9; /* IE6-9 only hack */ | |
} | |
.wrapper div{ | |
background: white; | |
display: inline-block; | |
font-size: 12px; | |
zoom: 1; | |
*display: inline; | |
} | |
.wrapper:after{ | |
content: ""; | |
width: 100%; | |
display: inline-block; | |
zoom: 1; | |
*display: inline; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you put
pointer-event: none;
on the:after
pseudo-element it should prevent the pseudo-element from interfering with anything below.