HTML & CSS · Middle · Question 9 of 75

What does place-items: center do on a grid container?

Explanation

place-items = align-items + justify-items, i.e. aligning each item within its own cell. Aligning the whole grid (tracks) within the container is place-content (align-content + justify-content). The container itself is centered by its parent's styles.

Further reading

Problem with a question

HTML & CSS · Middle · question 9

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