janriemer,

Understanding flex-grow, flex-shrink, and flex-basis
https://css-tricks.com/understanding-flex-grow-flex-shrink-and-flex-basis/

A great guide by @fonts, which has really helped me understand those #flexbox properties better.

It just solved a "hack" I've used previously in one of my flex containers, where the container shouldn't grow when content in it changed (hack: use position: absolute and another element within with position: relative).

Now, I just use:
flex: 0 0 <some-value> ✨

Thank you, Robin! ❤️

#WebDesign #WebDev #CSS #Layout #Flex

  • All
  • Subscribed
  • Moderated
  • Favorites
  • webdev
  • DreamBathrooms
  • mdbf
  • ethstaker
  • magazineikmin
  • cubers
  • rosin
  • thenastyranch
  • Youngstown
  • osvaldo12
  • slotface
  • khanakhh
  • kavyap
  • InstantRegret
  • Durango
  • JUstTest
  • everett
  • tacticalgear
  • modclub
  • anitta
  • cisconetworking
  • tester
  • ngwrru68w68
  • GTA5RPClips
  • normalnudes
  • megavids
  • Leos
  • provamag3
  • lostlight
  • All magazines