In CSS Grid, the property grid-template-columns: repeat(3, ________); can be used to create three columns of equal width.

  • auto
  • 1fr
  • equal
  • 100px
The correct option is 1fr. The repeat() function in conjunction with 1fr will create three columns of equal width. auto would not ensure equal width. equal is not a valid value. 100px would fix the columns to a specific width, not making them equal.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *