Created
February 28, 2018 15:49
-
-
Save JoshuaFrontEnd/d6bf5d3446e623efe1c687cdcf9c95b0 to your computer and use it in GitHub Desktop.
Snippet que explica como setear el ancho en el hijo de un contenedor con display flex
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
.child { | |
/* width: 257px; */ | |
/* flex: 0 0 257px */ | |
flex-grow: 0; /* do not grow - initial value: 0 */ | |
flex-shrink: 0; /* do not shrink - initial value: 1 */ | |
flex-basis: 257px; /* width/height - initial value: auto */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment