Make invisible (display: none) cells count to colspan

Just wondering. Also, does this apply the same in browsers?

eg:.

<table><tr> <td>asdf</td> <td style="display:none;">asdf</td> <td>asdf</td> </tr></table> 

does colspan == 2 or 3?

+6
html html-table invisible
source share
1 answer

This is colspan=2

 <table border=1> <tr> <td>asdf</td> <td style="display:none;">asdf</td> <td>asdf</td> <td>go</td> </tr> <tr> <td>asdf</td> <td>asdf</td> <td>asdf</td> </tr> <tr> <td colspan=2>asdf</td> <td>asdf</td> </tr> </table> 

In this example, you can see the advanced

+2
source share

All Articles