Created
November 26, 2015 16:53
-
-
Save lgrayland/8187d65b27a19180125e to your computer and use it in GitHub Desktop.
snippet of scss to vertically align a 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
.item-to-align { | |
&:before { | |
content: ""; | |
display: inline-block; | |
height: 100%; | |
vertical-align: middle; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment