Hi,
I am trying to replace my table with divs and CSS but I cant figure out a way to mimic the rowspan attribute. This is my original code:
<table>
<tr>
<td>some content</td>
<td>some more content</td>
<td rowspan="2">THIS is A COLUMN</td>
</tr>
<tr>
<td colspan="2">SINGLE CELL ROW</td>
</tr>
</table>
With CSS:
<header>
<section>
<div>some content</div>
<div>some more content</div>
<div rowspan="2">THIS is A COLUMN</div>
</section>
<section>
<div>SINGLE CELL ROW</div>
</section>
</header>
header {display:table;}
section {display:table-row;}
div {display:table-cell;}
but it wont work because the div at the bottom will not go all the way below the rowspanned div as expected. Is there any CSS solution for this?
Thank you.
This is NOT A DUPLICATE. Im asking for ROWSPAN not colspan only.