Zebra stripes for tables

Ruby On Rails Add comments

Replacing

<tr>

with

<tr class="<%= cycle('one', 'two') %>">

in your tables will make lists easier to read.

Also apply the following css:

table tr.one td
{
background: grey;
}
table tr.two td
{
background: white;
}

Leave a Reply

WP Theme by Ray Hosting and brought to you by Ray Creations | Wordpress Themes
CSS XHTML