Streaming live at 10am (PST)

Center Aligning the Search Element with a Flexbox Parent

I am having some trouble center aligning a search element within a flexbox parent.

I made a video showing what the problem is:

You can also check it out in the designer here (just go to the lessons page under CMS collections when using the link):

Any ideas how to fix this?

Hi @moshemo

Just delete all the bottom margins from the search element. Then you can add padding to your header. Here’s a quick video:


Perfect - thanks :slight_smile:

1 Like