Empty-cells
This property is used to set whether or not to display borders and background on empty cells in a table. It will work only if the border-collapse is set to separate. We can set this property to show (default) or hide.
Ex:-
table { table-layout: fixed; }
How to set Table width and Height?
We use width and height property to set table width and height.
We can also set table heading (th) width and height.
table { width: 100% ;}
th { height: 10px; }
How to set Table Padding?
This property is used to control the space between the border and the content in a table, this is used on <td> and <th> elements.
th, td { padding: 10px; }

How to set Table color?
table {background-color: pink;}
- Global PR Points Calculators – Check Your Immigration Eligibility for Australia, Canada, Austria, Japan, New Zealand, and South Korea - March 14, 2026
- The Changing Shape of Technology: From Tools to Thinking Partners - March 9, 2026
- Omnisend vs. Klaviyo: Which Is Best for Agencies - February 19, 2026