Solved

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

Posted on 2006-10-26
4
1,038 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: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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

Suggested Solutions

Title # Comments Views Activity
Overlap photo won't go all the way to the right 1 23
CSS issue 8 39
Looking for magnifying glass wingding font 3 18
Changing Two Areas of a Page 5 25
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 …
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

809 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