![]() |
VOOZH | about |
In this article, we will learn how to hide borders and backgrounds on empty cells in a table using CSS. The empty-cells property of CSS is used to hide the borders and backgrounds on empty cells.
empty-cells: hide; style of the .gfg class hides any cells in the table without content, so they donβt appear visibly.Output
Before applying empty-cells property
After applying empty-cells property