how to use colspan in html

Posted by Shanky11 under HTML 5 on 2/27/2013 | Points: 10 | Views : 2509 | Status : [Member] | Replies : 4
if i make ist row 2nd data column colspan=2 then in second row when i write in 2nd td colspan=2 then in secomd row nothing is happening
why


<html>
<body>

<table border="1">

<tr style="height:75px">
<td style="width:25%"></td>
<td style="width:25%" colspan="2"><h2>Welcome to Login Page</h2></td>
<td style="width:25%"></td>
<td style="width:25%"></td>
</tr>
<tr style="height:75px">

<td style="width:25%"></td>
<td style="width:25%">Login</td>
<td style="width:25%"></td>
<td style="width:25%"></td>
</tr>
</table>

</body>
</html>




Responses

Posted by: Satyapriyanayak on: 2/27/2013 [Member] [MVP] Silver | Points: 25

Up
0
Down
Refer
http://www.htmlcodetutorial.com/tables/_TD_COLSPAN.html
http://www.w3schools.com/tags/att_td_colspan.asp

If this post helps you mark it as answer
Thanks

Shanky11, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Murugavelmsc on: 2/27/2013 [Member] Starter | Points: 25

Up
0
Down
http://www.velocityreviews.com/forums/t159115-colspan-rowspan-html-table.html
http://www.hitmill.com/html/tables/two_g.html

Regards,
Murugavel S
murugavel.sadagopan@gmail.com
http://murugavelmsc.blogspot.in/

Shanky11, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Cavin12 on: 3/28/2019 [Member] Starter | Points: 25

Up
0
Down
thanks for the cool info which we are looking for our https://bit.ly/2UwPNvY

Shanky11, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Parth123 on: 6/5/2019 [Member] Starter | Points: 25

Up
0
Down

<table>
<tr>
<th>Name</th>
<th>Expense</th>
</tr>
<tr>
<td>Arun</td>
<td>$10</td>
</tr>
<tr>
<td>Priya</td>
<td>$8</td>
</tr>

<!-- The last row -->
<tr>
<!-- This td will span two columns, that is
a single column will take up the space of 2 -->
<td colspan="2">Sum: $18</td>
</tr>
</table>

ASP.NET Software development companies
[url]https://www.ifourtechnolab.com/[/url]

Shanky11, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response