Last active
July 21, 2020 22:14
-
-
Save alyssawilliams/38af714a8ac086cb1394684ff9ab1e11 to your computer and use it in GitHub Desktop.
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
// Fixes collapsed right margin of last flex child. | |
// The overflow property applies only to content. It doesn't apply to padding or margins. | |
// Pseudo-elements on a flex container are rendered as flex items. | |
.flex-container:after { | |
content: ''; | |
flex: 0 0 16px; | |
} | |
.flex-child { | |
margin: 0 16px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment