Last active
August 15, 2022 08:33
-
-
Save Andaeiii/c7ff9b9c39881bd44d97a87b302381ac to your computer and use it in GitHub Desktop.
How to make a flex item fit into any given space, this one trick might help solve 90% of your flex issues... know when to use display:flex and display: flexbox...
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
.parent{ | |
display:flex; | |
flex-direction:column; | |
} | |
.child{ | |
flex:1; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment