[thelist] HTML table alternating row problem

David Shadovitz david_shadovitz at xontech.com
Mon Jun 18 19:27:28 CDT 2001


Perhaps one of you can help me understand why my HTML table is displayed
correctly on my machine and incorrectly on others.  The code looks like
this (OK, I've simplified it):

<table>
<tr class="header"><th>x</th><th>y</th></tr>
<tr class="data0"><td>1.0</td><td>55</td></tr>
<tr class="data1"><td>2.0</td><td>67</td></tr>
<tr class="data0"><td>3.0</td><td>44</td></tr>
<tr class="data1"><td>4.0</td><td>23</td></tr>
</table>

The classes are defined in an external style sheet.  The main purpose of
the data0 and data1 classes is to set the background color.  Users
report that the "data1" rows look fine, but the "data0" rows are
invisible - there's no data, and the rows' background color is the same
as the page's background color.  If these users view the page's source
code, it looks fine.

Sorry for this lousy description.  Any thoughts are appreciated.

-David





More information about the thelist mailing list