W3C home > Mailing lists > Public > www-amaya@w3.org > October to December 1999

problem with <col>

From: <Bertrand.Ibrahim@cui.unige.ch>
Date: Thu, 11 Nov 1999 15:20:23 +0100
To: www-amaya@w3.org
Message-id: <0FL100DM3EI16S@cuimail.unige.ch>

I am using the <col> tag to set the class attribute of each column of a table.
My purpose is to alternate background colors in successive columns to make it
easier to look at the content of each single column. 

Initially, the <col> tags were placed by Amaya between the <table> and the 
<tbody> tags. Unfortunately, this resulted in Amaya showing as many empty 
lines at the beginning of the table as there are <col> tags. Surprisingly 
enough, each of these empty lines showed a one pixel wide background the 
color of which corresponded to the color associated with the class of a column.
In addition, the background color of the columns of the main part of the table
remained unchanged (i.e. the document background color). See
http://cuisung.unige.ch/garbage/991109.html for an illustration.

When I moved the <col> tags manually within the <tbody> section, Amaya
didn't display anymore the empty lines at the beginning of the table, but
still didn't take into account the class information to change the background
of the columns.

I should mention that, in both cases, the table was displayed correctly in
Internet Explorer 5.

The problem I described above applies to both Solaris 2.5 and Win98 binary 
releases of Amaya 2.2 (in both cases the display is a true color display).

From looking at the HTML 4 specification, it is unclear to me whether the
<col> tags have to be in one of the <thead>, <tbody> or <tfoot> sections
of a table, or outside these sections, e.g. just after the <table> tag.
My understanding is that <col> and <colgroup> tags could be anywhere
between the <table> and </table> tags. Other opinions?


Bertrand Ibrahim.
Received on Thursday, 11 November 1999 09:20:28 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:30:29 UTC