473,378 Members | 1,146 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

HTML <td> rowspan at the end of a table

JnrJnr
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)

1 4128
Dormilich
8,658 Expert Mod 8TB
a rowspan in the last row will never work out (because there are no more rows to span over)
Feb 6 '12 #2

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

Similar topics

2
by: Sturnoff Megantic | last post by:
This seems like such a stupid little problem, but it's been bugging me for hours now. I have a 2D array called agents2d. I need to loop through it and display the info. Here is my code: echo...
1
by: Terry | last post by:
hi guys, could anyone help me with this? I tried to put a <div> in a <td>, and a <table> in that <div>. It looks fine, but my div can't fit in my <td>, there's always a space between the bottom of...
2
by: bissatch | last post by:
Hi, I am trying to use JavaScript to write a table column on a web page. The code is as follows: <html> <head> <script> function displaycount() {
5
by: Derek Fountain | last post by:
I have a horizontal navigation bar, which is a single row table containing the right images. It "stretches" itself across the screen using a penultimate td like this: <td width="100%"...
3
by: RC | last post by:
I have a very sime html table like <html><head><title>My Table</title> <style> input { margin: 0; padding: 0; border-width: 0; text-indet: 0; text-align: left } </style></head><body> <table...
6
by: Chris Fink | last post by:
Does anyone know it is possible to include a small image(.gif .jpeg) within a <SELECT><option> so that the user would see the option text as well as a little image(icon) in the option? I know this...
1
nirmalsingh
by: nirmalsingh | last post by:
i want to hide the values inside a <td> of a table? how can i do this?
3
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= | last post by:
Hi misters, How I generate <tbodytag using Table, TableRow, etc ... controls ? I have this method: private Table GenerarTablaOrdenacion(LinkButton lnkAscendente, LinkButton lnkDescendente,...
0
by: Andy Dingley | last post by:
Background: I have a bunch of (yet unwritten) code for a JSP tag library to generate "tables" of data.The same tag library will be re-used to generate a great many "complex data view" pages. In...
2
by: BaseballGraphs | last post by:
Hello, I am trying to find resources or an explanation on how to highlight several <td>'s within a table when a click is made and the mouse is dragged across the table while holding the click. ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.