Zain Farooq
Zain Farooq

Reputation: 2964

Is this possible to make height of Html table th independent of others?

I have problem that I want to make a html table in which height of one th equals to other th and td both in same tr. Is there any possibility to do that. I have tried it by changing the height of th but it changes the height of other th as well

 ------- --------
|       |        |
|  th   |        |
|       |        |
 -------    th   |
|       |        |
|  td   |        |
|       |        |
 ------- --------

Upvotes: 0

Views: 173

Answers (1)

Sunil Gehlot
Sunil Gehlot

Reputation: 1589

I have used rowspan="2" please check below..

<table border="1">
<tr>
  <th>th</th>
  <th rowspan="2">th</th>
</tr>
<tr>
  <td>td</td>
</tr>
</table>

Check updated fiddle

Upvotes: 2

Related Questions