In my project, I have a mat grid list where users can define the number of rows and columns. My goal is to display borders around each mat-grid-title cell.
However, I am struggling to properly display the outermost black border for the entire mat-grid-list. The right and bottom borders are not showing up correctly.
<mat-grid-list cols="2" rowHeight="200px" style="border: 4px solid black">
<mat-grid-tile style="border: 2px solid red">
<div class='internalMatGrid' >
<mat-grid-list cols="1" rowHeight="2:1">
<mat-grid-tile>1</mat-grid-tile>
</mat-grid-list>
</div>
</mat-grid-tile>
<mat-grid-tile style="border: 2px solid red">2</mat-grid-tile>
<mat-grid-tile style="border: 2px solid red">3</mat-grid-tile>
<mat-grid-tile style="border: 2px solid red">4</mat-grid-tile>
</mat-grid-list>
If you would like to see this code in action, check out my stackblitz here: https://stackblitz.com/edit/angular-7gjjjn
Thank you for your help!