I’m trying to create a mat-grid-list with angular material, the problem is that I don’t see anything appear in my page
this is my component info-section :
<div class="mat-grid-list" cols="4" rowHeight="100px">
<div class="mat-grid-tile" style="grid-column: span 1; grid-row: span 2; background-color: lightpink;">
Three
</div>
<div class="mat-grid-tile" style="grid-column: span 0; grid-row: span 0; background-color: lightgreen;">
Two
</div>
<div class="mat-grid-tile" style="grid-column: span 3; grid-row: span 1; background-color: #DDBDF1;">
Four
</div>
</div>
every thing is installed and declared
2
Answers
You need to use the Angular Material grid list components. Not just the CSS
See examples https://material.angular.io/components/grid-list/examples
The grid-column and grid-row properties need appropriate span values to determine how many columns or rows a grid tile should span.