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

The minmax() Function in repeat()

What does the declaration grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) do?

Answer options

  • Creates columns with a fixed width of 200px
  • Sets the minimum row height to 200px
  • Creates exactly 200 columns with a width of 1fr
  • Automatically fills the row with columns from 200px to 1fr

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