Click here to get back home

There is no gap between cells in html table with CELLSPACING greater than zero

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
There is no gap between cells in html table with CELLSPACING greater than zero Boris Miloslavsky 08-25-2004
Posted by Boris Miloslavsky on August 25, 2004, 11:38 am
Please log in for more thread options
Hi,

I have a weird problem. A regular html containing table does not
display correctly in IE6. I do not see a gap between second and third
columns in the header. I have a dark background and light font color
in the table header.

Here is the sample:
-------------------

<table height="100%" cellSpacing="2" cellPadding="2" width="740"
align="left" border="0">
                                                                                <tr>
         <td class="altheaderrow" noWrap colSpan="4">Contract Details
&nbsp;-&nbsp;Control Systems</td>
                                                                                         <td class="altheaderrow" noWrap
colSpan="2">&nbsp;Sample</td>
        </tr>
                                                                                <!-- Invoice Documents -->
        <tr class="altheaderrow">
         <td class="altheaderrow" noWrap colSpan="6">Contract
Document(s)</td>
        </tr>
        <tr>
         <td class="headerrow" nowrap colSpan="3">Document Name</td>
         <td class="headerrow" colSpan="1" align="right"
width="13%">Document Size</td>
         <td class="headerrow" colSpan="1" align="left" width="15%">Document
Type</td>
         <td class="headerrow" colSpan="1">Description</td>
        </tr>
        <tr>
         <td class="row" noWrap colSpan="3">
         <a class="rowlink"
href="javascript:OpenWindow('/CCMDocuments/Contracts/Control Systems -
VA Office.tif');" title="View Document">Control Systems - VA
Office.tif</a>
         </td>
         <td class="row" noWrap colSpan="1" align="right">unknown</td>
         <td class="row" noWrap colSpan="1">Contract</td>
         <td class="row" colSpan="1">New Control Systems Contract</td>
        </tr>
</table>
        
                                
Styles used:
------------

..headerrow {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 10px;
        font-weight: bold;
        color: #F2F7C4;
        background-color: #CA7F43;
}
..altheaderrow {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 10px;
        font-weight: bold;
        color: #F2F7C4;
        background-color: #8B9F9F;
}
..row {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 10px;
        background-color: #FFFFFF;
        color: #000000;
        font-weight: bold;
}

Thanks in advance for any clue.

Boris


Posted by Els on August 25, 2004, 7:18 pm
Please log in for more thread options
Boris Miloslavsky wrote:

> Hi,
>
> I have a weird problem. A regular html containing table
> does not display correctly in IE6. I do not see a gap
> between second and third columns in the header. I have a
> dark background and light font color in the table header.
>
> Here is the sample:
> -------------------

[snip code]

> Thanks in advance for any clue.

If you set the colspan in the first cell to anything less than
4, the gap appears.

No idea why, I'm sorry.
Maybe it's a bug, I don't know.

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -


Similar ThreadsPosted
img table cells next to each other without a gap possible? May 26, 2006, 10:27 pm
fixed table cells January 23, 2007, 11:40 pm
Table cells change size March 1, 2005, 9:02 pm
Table with 100% width but relative cells? June 1, 2005, 11:08 am
DIVs inside table cells? April 13, 2008, 9:46 am
Freezing the width of TABLE cells June 20, 2008, 1:12 pm
Newbie: Problems with table cells & colspan August 9, 2004, 7:11 pm
Optimized table with fixed size cells? February 4, 2007, 5:17 pm
how to properly hide/show table cells? January 31, 2008, 5:38 pm
HT make table data cells equal in width? May 9, 2007, 9:00 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap