+ 1

Occupying two rows plus two columns?

How do I make it that the second row will occupy both two rows and two columns? Iv'e tried the following but it didn't work <table border="2"> <tr> <td>Red</td> </tr> <tr> <td>Yellow</td> <td colspan="2" rowspan="2">Orange</td> </tr> </table>

29th Sep 2017, 1:35 PM
noam b
noam b - avatar
2 Respostas
+ 3
noam b, number of rows in an HTML table is ill-defined, but number of rows is strictly defined by number of <tr> tags in it. So if you define a cell to span more rows than there are left, there are no more rows to span, so it spans only those rows that it can span. On the other hand, if there are enough rows under the cell, it looks like intended.
5th Aug 2021, 12:10 PM
#0009e7 [get]
#0009e7 [get] - avatar
+ 1
ok so if I put the "orange" line in the first row under the "red" line, it's gets the job done, but I still don't understand why, what's the difference?
29th Sep 2017, 1:41 PM
noam b
noam b - avatar