While working on creating cards using Angular Materials, I encountered an issue where the image was not filling up the space as desired. The red area in the image indicates where I want the image to take up space.
https://i.sstatic.net/vcc9U.png
HTML:
<mat-card (click)="optionPicked()">
<img mat-card-image [src]="backgroundImage">
<mat-card-subtitle>
<b>{{SubtitleHere}}</b>
</mat-card-subtitle>
<mat-card-content>
</mat-card-content>
</mat-card>
CSS3:
.mat-card-image {
width: 100%;
margin: 0 -16px 16px -16px;
padding: 0%;
}