#todayilearned

by @jm3 · aka John Manoogian3

Frequent, bite-size mini-milestone updates as I fast-forward merge* my front-end web development skills up to 2019 levels. Learn more

the CSS repeat() function

Posted at — Jun 15, 2019

CSS Grid introduces a handy repeat() function that works with both CSS Grid properties grid-template-columns AND grid-template-rows.

It supports units of:

  • px
  • percent
  • fractional fr’s
  • auto
  • min-content (?)
  • max-content (?)
  • minmax (?)
  • fit-content(200px) (?)