Solved

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

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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Creating a CSS block that only applies to printing By default, all of your CSS applies to every possible view of your page - whether on screen, printed, landscape, touch-screen, or whatever.  You can, however, add CSS that only applies under certai…
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this Micro Tutorial viewers will learn how to create a CSS image sprite (In a later tutorial, viewers will learn how to use CSS and HTML to create a navigation menu using this sprite) Open a new Photoshop document with a width of (Icon width)x(N…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…

770 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