HTML & CSS · Middle · Question 10 of 75

When is Grid more appropriate, and when Flexbox?

Explanation

Flexbox arranges items along a single axis and suits "content defines size": menus, toolbars, alignment within a component. Grid controls both axes at once and suits "layout defines size": page layouts, galleries. Both are current and often used together.

Further reading

Problem with a question

HTML & CSS · Middle · question 10

Test yourself

Take the HTML & CSS · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz