By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,688 Members | 1,900 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,688 IT Pros & Developers. It's quick & easy.

HTML <td> rowspan at the end of a table

JnrJnr
P: 88
Hi, I have a table that has, say 3 rows and two columns in each. I need to create a rowspan for the third column on the last <td>.
Is it possible to create a rowspan for an HTML table when rowspan is created at the last <td> in the table?
Like this:
Expand|Select|Wrap|Line Numbers
  1. <table width="100" border="1" cellspacing="3">
  2.   <tr>
  3.     <td>dd</td>
  4.     <td>dd</td>
  5.   </tr>
  6.   <tr>
  7.     <td>dd</td>
  8.     <td>dd</td>
  9.   </tr>
  10.   <tr>
  11.     <td>dd</td>
  12.     <td>dd</td><td rowspan="3" valign="top">ss</td>
  13.   </tr>
  14. </table>
It seems like it only works when you place rowspan at the first <td> in the table.
Any ideas? I want to do it like this for a dynamically created table in PHP.
Feb 6 '12 #1

✓ answered by Dormilich

a rowspan in the last row will never work out (because there are no more rows to span over)

Share this Question
Share on Google+
1 Reply


Dormilich
Expert Mod 5K+
P: 8,639
a rowspan in the last row will never work out (because there are no more rows to span over)
Feb 6 '12 #2

Post your reply

Sign in to post your reply or Sign up for a free account.