I'm having an issue getting the CSS grid to work. As far as I know, I am following the spec for the IE10/11 specification for this. My initial research led me to: CSS Grid Layout not working in Edge and IE 11 even with -ms prefix - and tried implementing suggested changes.
my code is below:
.filter-item-grid {
display: grid;
display: -ms-grid;
grid-template-columns: auto auto;
-ms-grid-columns: 267px 267px;
-ms-grid-rows: 1fr;
}
<div class="filter-item-grid">
<div class="letter-list__filter-item">
<h3 class="letter-list__filter-title">
<a href="#">Headline</a>
</h3>
<p>Sub headline</p>
</div>
<div class="letter-list__filter-item">
<h3 class="letter-list__filter-title">
<a href="#">Headline</a>
</h3>
<p>Sub headline</p>
</div>
<div class="letter-list__filter-item">
<h3 class="letter-list__filter-title">
<a href="#">Headline</a>
</h3>
<p>Sub headline</p>
</div>
<div class="letter-list__filter-item">
<h3 class="letter-list__filter-title">
<a href="#">Headline</a>
</h3>
<p>Sub headline</p>
</div>
</div>
When viewing this markup in IE, it looks as if everything is absolutely positioned in the same spot. As per the attached answer I'm:
- Using vendor prefixes
- not relying on
auto
for the MS fallback - Not using
repeat()
- explicitly stating position of each item.
What specifically needs to change to fully support the IE specification for CSS grid? Or is it reccomended to use the @supports
CSS query?