27 Jun 2018

Styling an inline search form using flexbox

Styling search forms that have the input and button displaying inline can be a real pain. Sure, we can use the float property, but we would need to give each element a width. It's workable, but such a hassle to make it responsive. So here is a flex box solution that ensure each element of the form float next to each other and grows/shrinks as required.