Last active
February 18, 2016 10:44
-
-
Save soerson/90fe33d55acf5bf9ffe3 to your computer and use it in GitHub Desktop.
SCSS: horizontal align via justify
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
| @mixin justifyHorAlign($ver-align: top, $item-align: left) { | |
| text-align: justify; | |
| &::after { | |
| width: 100%; | |
| content: ""; | |
| display: inline-block; | |
| } | |
| & > * { | |
| display: inline-block; | |
| vertical-align: $ver-align; | |
| text-align: $item-align; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment