Created
June 21, 2019 13:50
-
-
Save moxdev/8904af2da2020dbc7813990e25d0eeb3 to your computer and use it in GitHub Desktop.
Center absolute position for IE11 #css
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
// Position center 50% left 0 (works in IE11) | |
position: absolute; | |
top:50%; | |
left:0; | |
transform:translate(0, -50%); | |
// Position center 50% left 50% (works in IE11) | |
position: absolute; | |
top:50%; | |
left:50%; | |
transform:translate(50%, -50%); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment