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 ?
3 Respostas
+ 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' ).
0
Why would you want to do this?
0
suppose i want to make a full rowspan sized button right next to the table