CSS Grid: repeat function # 07

repeat function

repeat function specifies the same value for multiple columns in the grid. 

It accepts two values

  • Number of times to repeat
  • The value to be repeated


Example


.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
}


Previous PostNext Post






Post a Comment

Previous Post Next Post