DEV Community

Discussion on: Learn CSS Flexbox in 5 Minutes

Collapse
 
demaine profile image
Colin Demaine • Edited

You have to replace the rule that came before it. So delete .container > div and target the search item with a class name. Also it might be worth considering that you won't see much of a difference on smaller screen sizes or with narrower flex containers.
I put together a visual explanation on Codepen to try and help to explain things and give working demos for you to see the effect in action.

Hope this helps!