Solved

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

Posted on 2006-10-26
4
1,043 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Unordered lists (HTML ul tags) are very handy to create menus of all types, shapes and sizes.  All it takes is a little knowledge of CSS and the possibilities are endless. First off, you should know the general format for menus created using the …
When applying CSS to your HTML, there are many different ways to select which element(s) the CSS applies to.  Some of these selectors are more commonly known and used than others - Here are the more common ones: #X - Matches an ID of X .X - Matche…
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

749 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