DEV Community

Discussion on: Grid vs Flexbox

Collapse
 
lucasalt profile image
LucasAlt

Technically, you can use flexbox to make tables, but grids bring simplicity when you start doing complicated things.
With time, I was able to establish a few rules:

  • Flexbox are mainly used to structure the page and format simple components (a contact form or a navigation bar).
  • And Grid are used for more complex components.

I know that before the arrival of the grid property, we used tables and applied particular styles to make nice tables but it was long, tedious and ugly (in the code).