Last active
June 12, 2020 09:27
-
-
Save mpodaniev/fcb3eaf7da07e825070b8133ee5175f1 to your computer and use it in GitHub Desktop.
Fix align-items: center; for IE
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
.container-flex::after { | |
content: ''; | |
min-height: inherit; | |
font-size: 0; | |
/* or | |
content: ""; | |
display: inline-block; | |
min-height: inherit; | |
visibility: hidden; */ | |
} | |
/* Mixin for SASS */ | |
@mixin fixIeFlexAlign { | |
&::after { | |
content: ''; | |
min-height: inherit; | |
font-size: 0; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment