Skip to main content

Flexbox and Grid for Frontend Developers

Flexbox lays out items in one dimension and Grid lays out items in rows and columns at the same time.

Stage: Styling with CSS · Part of the Frontend Developer roadmap · Last reviewed 19 November 2026

What to learn in Flexbox and Grid

Flexbox and Grid interview questions

When would you use Grid instead of Flexbox?

Use Grid for two-dimensional page layouts and Flexbox for one-dimensional rows or columns such as navbars.

Where Flexbox and Grid fits in the Frontend Developer roadmap

Flexbox and Grid belongs to the Styling with CSS stage. Layout, responsive design and modern CSS.

Back to the full Frontend Developer roadmap