Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

When writing CSS, there are a few simple rules that will make your life easier.    1. Using ‘* {box-sizing:border-box;}’. Using this will wrap all your elements in a nice little compact box-model that will give you the width you want, like so... …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

910 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

20 Experts available now in Live!

Get 1:1 Help Now