Last active
December 22, 2020 08:08
-
-
Save jupegarnica/f0c2f5ba502d4490f86ff78e0c5012b4 to your computer and use it in GitHub Desktop.
layout-wrap.scss
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
.parent { | |
display: flex; | |
flex-wrap: wrap; | |
} | |
.child { | |
// flex: none | [ <'flex-grow'> <'flex-shrink'>? || <'flex-basis'> ] | |
// If we don't want the items to stretch: | |
flex: 0 1 300px; | |
// If we do want the items to stretch: | |
flex: 1 1 300px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment