The value of flex can mean different things
See original GitHub issueI didn’t know this before, but apparently you can set flex
to 30px
and it will only set flex-basis
, you can also set it to 1 30px
, which sets flex-grow
and flex-basis
while skipping flex-shrink
.
It looks like we have more work to do 😔
Issue Analytics
- State:
- Created 8 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Basic concepts of flexbox - CSS: Cascading Style Sheets | MDN
As with flex-grow , different values can be assigned in order to cause one item to shrink faster than others — an item...
Read more >What does flex: 1 mean? - Stack Overflow
flex: 1 means the following: flex-grow : 1; ➜ The div will grow in same proportion as the window-size flex-shrink : 1; ➜...
Read more >flex - CSS-Tricks
The flex property is a sub-property of the Flexible Box Layout module. This is the shorthand for flex-grow , flex-shrink and flex-basis ....
Read more >Flex Item Properties - CSS Mine
flex – Overall Item Flexibility · flex-grow: 0 - the item will not expand to fill free space. · flex-shrink: 1 - it...
Read more >Flex Cheatsheet
The defining aspect of flex layout is the ability to make the flex items “flex”, altering their width/height to fill the available space...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Nice catch, you could perhaps raise an issue in DevTools.
Ah, you’re right. I got confused because Chrome Dev Tools seem to show it all incorrectly: This is the styles pane (I expanded the
flex: 40px
rule, Chrome should show to what it expands):And this is what I get in the console for this element: