I have a very intricate table setup that resembles a tree structure, with only a few cells on the left and many on the right. I am looking to completely hide specific cells, along with their entire rows, using JavaScript based on their class.
Using visibility:hidden
merely hides the content within the cells, and adjusting attributes like text size and borders only shrinks them, leaving a few pixels behind. Despite trying variations such as line-height:0
, padding:0
, and border-spacing:0
, there still seems to be about two pixels of space remaining in the cells, with an additional two pixels vertically between them.
Is there a comprehensive list of CSS attributes that need to be set to zero in order for a cell to vanish completely from view?