Why do you need the extra div.<br>It would work if you assign the class to the tableRow!<br><br>br<br>Gerhard<br><br><div class="gmail_quote">On Sat, Mar 14, 2009 at 7:22 PM, Sorensen <span dir="ltr">&lt;<a href="mailto:sorens@surfy.net">sorens@surfy.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
As I understand, the usual way to alternate the colors in table rows is to<br>
use &#39;html div class:&#39; and pass in a separate CSS tag for each row color.<br>
Eg:<br>
<br>
collection withIndexDo: [:each :index |<br>
    html div class: (&#39;row&#39;, (index \\ 2) printString ); with: [<br>
         html anchor<br>
             callback: [self showContact: contact];<br>
             with: (contact firstName , ‘ ‘, contact surname )]]<br>
<br>
However, when I try to do this within a table, it does not eeem to work:<br>
<br>
html table: [<br>
     collection withIndexDo: [:each :index |<br>
          html tableRow: [<br>
              html div class: (&#39;row&#39; , (index \\ 2) printString); with: [<br>
                   html<br>
                        tableData: each stuff1;<br>
                        tableData: each stuff2]]]]<br>
<br>
What appears in rendered page is a bunch of blank lines of alternating<br>
colors, followed by the usual table data (which remains uncolored).<br>
<br>
Is there a way to render such a table without using any other specialized<br>
class such as WATableReport or such?<br>
<br>
Thanks, Soren<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://www.nabble.com/How-to-alternate-table-row-colors-without-WATableReport-tp22512359p22512359.html" target="_blank">http://www.nabble.com/How-to-alternate-table-row-colors-without-WATableReport-tp22512359p22512359.html</a><br>

Sent from the Squeak - Seaside mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</font></blockquote></div><br>