Created
February 2, 2016 09:38
-
-
Save Tusko/dad2feae70162a631530 to your computer and use it in GitHub Desktop.
valign css
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
// Vertical align inside DIV | |
// <span class="valign">Some content</span> | |
// <span class="vfix"></span> | |
.valign {display: inline-block;vertical-align: middle; max-width: 98%} | |
.vfix {display: inline-block;height: 100%;vertical-align: middle;width: 0} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment