Skip to content

Instantly share code, notes, and snippets.

@JoshuaFrontEnd
Created February 28, 2018 15:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JoshuaFrontEnd/d6bf5d3446e623efe1c687cdcf9c95b0 to your computer and use it in GitHub Desktop.
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
.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