Alternate row color view in web

Hi,I am trying to give alternate row color to my view using CSS but the problem is how to give either or tag.

Thanks in Advance

Subject: treat view contents as html

You can conditionally color rows in a view on the web it you display the view using html.

So, in the view properties, Advanced (beanie) tab, checkmark “treat view contents as html”.

Then, you want your first column to be formula=“”, and each subsequent column to be something like formula= “” + fieldname + “”. And your last column to be formula=“”.

Doing this, you can assign the view a $$ViewTemplate, put a stylesheet in that form’s HTML Head Content, and assign classes in your td tags like .

Don’t forget to make the text in your column headers also in and .

You said something about “alternate” colors. This description is how to make it different color row. If you are wanting every other row a different color, I am not sure how to accomplish that with css. I know it is built into the notes view styles.

Subject: You may want to look up jQuery examples…

jQuery can help very easily if you want to include the jQuery libraries–it is about 23k off of googleapi, but it can be done in about 1-2 lines of jQuery that references your CSS style.

something like the following is what I am thinking, but you will have search online on the actual examples:

$(‘.myTable tr:even’).addClass(‘colorForEven’);

-Kyle Huang

Subject: thank you

thanks to all.