The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Flexbox Skip First Item Reply To: Flexbox Skip First Item


flex-basis is not the same as width.

I prefer using the shorthand of flex:0 0 100% meaning “don’t grow, don’t shrink and be 100% wide at the start”.

The default is flex:0 1 auto so there’s the possibility of the box shrinking if we don’t set theflex-shrinkto 0.

Force of habit really.