I am building an app and I have a table dynamically created.
The table rows are created as follows
<tr style="background-color: #71aa9a;">
<td></td>
.
.
.
<td></td>
<tr/>
And some of the td's are hidden during creation .
The problem that arises is that when a td is invisible (visibility:hidden) the background color of tr is disappeared and is white instead.
Can someone explain me why and how can i solve it ?
I dont want to use display:none; due to the need of specific td's in a row.
opacity: 0;
work as an alternative but I don't have the why