Solved

COLSPAN=0 doesn't work in I.E. 6.0...

Posted on 2006-10-26
4
1,008 Views
Last Modified: 2012-08-14

How do I get a "TD" tag to span the entire width of a table if I don't know how many columns will be in the final table?

For instance:

<TABLE>
<TR>
    <TD colspan=0?>This is a title that I would like to span across the top of the next "n" columns"</TD>
</TR>
<TR>
    <TD>FIRST COLUMN</TD>
    <TD>SECOND COLUMN</TD>
    <TD>THIRD COLUMN</TD>
    .... plus up to 50 dynamically added columns....
</TR>
<TR>
    <TD>.... same as above but with different data....
</TR>
</TABLE>

-- Bubba
0
Comment
Question by:bganoush
  • 2
  • 2
4 Comments
 
LVL 30

Accepted Solution

by:
GrandSchtroumpf earned 250 total points
ID: 17820183
The proper element to use is CAPTION:
http://www.blooberry.com/indexdot/html/tagpages/c/caption.htm

<TABLE>
<CAPTION>This is a title that I would like to span across the top of the next "n" columns"</CAPTION>
<TR>
    <TD>FIRST COLUMN</TD>
    <TD>SECOND COLUMN</TD>
    <TD>THIRD COLUMN</TD>
    .... plus up to 50 dynamically added columns....
</TR>
<TR>
    <TD>.... same as above but with different data....
</TR>
</TABLE>
0
 

Author Comment

by:bganoush
ID: 17820217

Oh that's right.... I used that before...

Thanks Papa Smurf!
0
 
LVL 30

Expert Comment

by:GrandSchtroumpf
ID: 17820390
It's smurfly a smurf to smurf another smurf  <:°)
0
 

Author Comment

by:bganoush
ID: 17820477

My son borrowed a Schtroumpf video from his school's library and has been begging me to sit with him to watch it... Just too busy.....

Have a smurfy day!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now