If you look at the HTML source of the file, you will see that the table
structure generated by DisplayTag by default looks something like:

<table>
        <th>....</th>
        <tr class='odd'>
                <td>....</td>
        </tr>
        <tr class='even'>
                <td>....</td>
        </tr>
</table>

The class is the key as it differentiates odd and even rows. Now all you
need is to write a CSS file which does what you want.

Harsh.

-----Original Message-----
From: Abhimanyu Koul [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 12:56 AM
To: Struts Mailing list
Subject: urgent


hi all!
I want to display the records in a list using display tag in a tabular
form. 
But i need to alternate row background colours using css. i am not able
to figure out how.
how do we alternate styles in rows of a table using css and display tag.


Abhimanyu Koul
FinEng Solutions (P)  Ltd.
Dani Compound,
158, Vidyanagari Marg,
Kalina, Santacruz (East),
Mumbai - 400 098
Mobile : +91 9860582533

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to