Here's a way: Add a counter variable in your loop (if there isn't one already there). For every value you get from the database, increase the counter by one. While printing the value, if the counter is even, print blue, if it is odd, print yellow. You can check if the number is even or odd by dividing by 2 and checking if the remainder is 1 or 0. You can also use different colors than blue and yellow. ;-) Hope this helps! Yannis Sorin Marti <mas@semafor.ch> wrote:Hi all, I am experimenting around with zope and I want to do following thing: I call values from the database and give them out. Now I want each second line in a different color. How do I do that? Thanks in advance Sorin _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) --------------------------------- Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more