0

confusion in rowspan and colspan

Hey, I have learnt that you can use colspan and rowspan within the body suppose we colspan 3 columns in a tbody its easy but how can we colspan or rowspan all together the theader the tbody and the tfooter all together. How can we do that ?

15th Jan 2017, 10:21 AM
Hussain Mohammed
Hussain Mohammed - avatar
3 odpowiedzi
+ 4
You need to use nested <table> containers: <table> <tr> <td> <table></table> <!-- this is your table without the 'all-table-height' spaned column --> </td> <td> <!-- the fake spaned column content goes here --> </td> </tr> </table> Obviously, this is for a right column, but you can as well reverse the order of the wrapper table cells... as well as arrange complex nested <table>... However, for just layout, you should use <div> or other containers semanticaly adapted, and style them with css as table family elements ( through the property 'display' ).
15th Jan 2017, 10:43 AM
visph
visph - avatar
0
Why would you want to do this?
15th Jan 2017, 10:23 AM
Andreas K
Andreas K - avatar
0
suppose i want to make a full rowspan sized button right next to the table
15th Jan 2017, 10:28 AM
Hussain Mohammed
Hussain Mohammed - avatar