Promptles
Frontend & Responsive Design

Flexbox

beginner

Definition

A modern way to arrange a row (or column) of items on a webpage and easily control how they line up, how much space each one takes, and what to do with the leftover space. Perfect for things like a navigation bar with a logo on the left and menu items on the right.

In the wild

A website's top bar has a logo, a search box in the middle, and an account button on the right. Flexbox lets the designer say 'put the logo at the left edge, push the account button to the right edge, and let the search box stretch to fill whatever space is left in between.'

More from Frontend & Responsive Design