Forked from owlsky/perfectly-justified-css-grid-technique-using-inline-block.css
Created
May 12, 2017 17:35
-
-
Save plugn/2abd5eda08974f9395f1d3a5adaa6098 to your computer and use it in GitHub Desktop.
perfectly-justified-css-grid-technique-using-inline-block
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; | |
| 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