Skip to content

Instantly share code, notes, and snippets.

@terrybrown
terrybrown / _grid-ie-calc.scss
Created October 26, 2017 08:01 — forked from robinloeffel/_grid-ie-calc.scss
Dynamic CSS Grid Items in Internet Explorer and Edge - https://rbnlffl.synology.me/grid-ie-calc
/*
This mixin allows us use CSS grid without having to think about
what -ms-grid-row/-ms-grid-column we have to assign to a grid element
for it to properly work on Internet Explorer and Edge.
It takes three arguments, the last one of which is optional. Specify the
maximum amount of items you want to have in your grid, when they should
break to the next line and, if you like, a grid-gap of some sort.