I am new to frontend development and learning and practising CSS. I am using a mat card as shown in attached image
My code is as follows
<div class="col-4">
<mat-card class="card">
<div class="header">
<div class="content1">Content of My header</div>
<div class="content2">Content of My header</div>
</div>
<button mat-button>MyButton</button>
</mat-card>
</div>
.card {
background-color: red
height: 47vh;
display: flex;
top: 2.5rem;
flex-direction: column;
right: 2rem;
}
.header {
background-color: red;
padding: 3% 0% 1% 3%;
}
If we see Header is leaving spaces on all three sides. I want to cover entire header with red color without leaving these sides. How can I do that?