+ 2

Please see this code and tell me why is there no line between 2nd and third column and how do i add it

<table border="2"> <tr> <td>Red</td> <td>Blue</td> <td>Green</td> </tr> <tr> <td><br /></td> <td colspan="2"><br /></td> </tr> </table>

21st May 2017, 1:17 PM
A.Shipra
3 Antworten
+ 9
<table border="2"> <tr> <td>Red</td> <td>Blue</td> <td>Green</td> </tr> <tr> <td>TEST</td> <td>TEST</td> <td>TEST</td> </tr> </table> As @Calvin wrote, read more about colspan attribute.
21st May 2017, 1:41 PM
Maz
Maz - avatar
+ 6
i think it is because of the colspan attribute. you put colspan which has a value of 2. The table data with the colspan attribute occupies the 2 columns. Thats's why there are no line(s) in between 2nd and 3rd columns.
21st May 2017, 1:48 PM
¤ rookie ¤
¤ rookie ¤ - avatar
+ 3
If you want line there, why did you put colspan="2" there?
21st May 2017, 1:38 PM
Calviղ
Calviղ - avatar