Rowspan | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Rowspan

How to use a rowspan attribute ??

19th Jul 2017, 9:44 AM
Yash Pawar
Yash Pawar - avatar
3 Answers
+ 7
Like this: <td rowspan="2">something</td>
19th Jul 2017, 9:51 AM
Farshad
Farshad - avatar
+ 5
You are mandatory to use rowspan/colspan by following some simple rules: cells (<td> elements) spanned (not the first one where you specify the attribrute) need to be ommitted from your <table> structure: <table> <tr> <td>cell content</td> <td>cell content</td> <td>cell content</td> </tr> <tr> <td rowspan="2">cell content</td> <td>cell content</td> <td>cell content</td> </tr> <tr> <!-- <td>cell content</td> spanned with previous same column cell --> <td cellspan="2">cell content</td> <!-- <td>cell content</td> spanned with pevious cell --> </tr> </table> Comments can be avoided, but here written for explanation purpose ;)
19th Jul 2017, 10:50 AM
visph
visph - avatar
0
Thanks....👍
19th Jul 2017, 9:56 AM
Yash Pawar
Yash Pawar - avatar