Question · HTML and CSS course · Module 5: Responsiveness

When to use Grid instead of Flexbox

When is it better to use CSS Grid instead of Flexbox?

Answer options

  • Grid is outdated and should not be used
  • Grid and Flexbox are identical in use
  • When we only have a single row of elements
  • When we need a two-dimensional layout (rows and columns at the same time)

You can check the correct answer by solving this task in the CodeWorlds game.