Skip to content

Instantly share code, notes, and snippets.

@mpodaniev
Last active June 12, 2020 09:27
Show Gist options
  • Save mpodaniev/fcb3eaf7da07e825070b8133ee5175f1 to your computer and use it in GitHub Desktop.
Save mpodaniev/fcb3eaf7da07e825070b8133ee5175f1 to your computer and use it in GitHub Desktop.
Fix align-items: center; for IE
.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