Created
March 5, 2021 23:13
-
-
Save halityurttas/56d2af405c613ea1dceb3ab558bbfc66 to your computer and use it in GitHub Desktop.
Flex items with base width
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-of-blocks { | |
display: flex; | |
flex-wrap: wrap; | |
justify-content: center; | |
} | |
.item-as-block { | |
flex: 1 1 200px; /* Stretching box */ | |
flex: 0 1 200px; /* No stretching box */ | |
margin: 15px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment