Assessment needed for tables

How to make 1st row containing headings and the footer row to normal,without the grey shade?

  • Add padding of 0.3em to the table headings and data and align them at the top of their cells.
    How to make the headings of 1st row at top of their cells?

Hi @vaishnavi_A.N

You should use tbody tr:nth-child(odd). Then the background would only apply to rows in the body of the table and not the header or footer.

When working with tables you can use vertical-align: top; for the vertical alignment of <th> and <td> cells.

I hope that helps!
Michael

1 Like

Thank you very much @mikoMK,you help me a lot. :+1:

1 Like