Question · HTML and CSS course · Module 8: CSS Grid

Centering with place-items

What does the property place-items: center do in CSS Grid?

Answer options

  • Moves the entire grid to the center of the page
  • Centers only the first grid element
  • Simultaneously sets align-items and justify-items to center
  • Centers text inside elements

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