2

I have used sample code from https://stackblitz.com/edit/angular-bklajw?file=app%2Ftable-basic-example.html. But the height property does not seem to work. Is there a way I can customize the height of the main header and subheader?

th.mat-header-cell, td.mat-cell {
    text-align: center;
    border: 1px solid #CCC;
    padding: 0 !important;
    height: 20px;
}
Mohammad Mirzaeyan
  • 845
  • 3
  • 11
  • 30
Dips
  • 33
  • 3

1 Answers1

0

Your problem is not with the <td> elements but with the <tr> ones. just add this:

tr.mat-header-row{
   height: 20px !important;
 }
chana
  • 183
  • 2
  • 19