user1959076 user1959076 - 1 month ago 6
HTML Question

Create a row with decimal number in rowspan

It's possible create this table with rowspan ??

|---------|---------|
| 1 |4 |
|---------| |
| 2 |---------|
|---------|5 |
| 3 | |
|---------|---------|


Every row inside the second column have 1.5 ?

I think that its possible play with the attribute 'height' or maybe create another table inside the second column...

But is it possibble only with rowspan or colspan?

Answer

Rowsapn must be an integer, but you can use

enter image description here

td {
  border: 1px solid;
  padding: 20px;
}
<table>
  <tr>
    <td>1</td>
    <td rowspan="2">4</td>
  </tr>
  <tr>
    <td rowspan="2">2</td>
  </tr>
  <tr>
    <td rowspan="2">5</td>
  </tr>
  <tr>
    <td>3</td>
  </tr>
</table>

Comments