How can I support Grid Layout for IE10 and/or IE11?
So far I have only found that the -ms-
prefix should do the trick, but I can only get it to work on Edge browser.
I have tried to look in the Microsoft docs, and MDN network but can't find anything to help.
Below you can find the code I used:
@supports (display:grid) {
.App-body {
display: grid;
grid-template-columns: 300px auto 300px;
grid-template-areas: "navbar navbar navbar" "leftside content content";
}
.leftside {
grid-area: leftside;
/*align-content: left;*/
}
.rightside {
grid-area: rightside;
/*align-content: right;*/
}
.content {
grid-area: content;
/*align-content: center;*/
}
.navbar {
grid-area: navbar;
}
}
@supports (display:-ms-grid) {
.App-body {
display: -ms-grid;
-ms-grid-columns: 300px auto 300px;
}
.leftside {
-ms-grid-row: 2;
-ms-grid-column: 1;
/*align-content: left;*/
}
.rightside {
-ms-grid-row: 2;
-ms-grid-column: 3;
/*align-content: right;*/
}
.content {
-ms-grid-row: 2;
-ms-grid-column: 2;
}
.navbar {
-ms-grid-row: 1;
-ms-grid-column-span: 3;
}
}