Juan, The "cycle" template tag may help you here:
http://docs.djangoproject.com/en/dev/ref/templates/builtins/#cycle colin On Nov 24, 2009, at 8:39 AM, Juan Hernandez wrote: > Hey there people... > > I've been coloring html tables using javascript for a while and now, we need > to color our tables just with html. The CSS has been made to use one color > for even rows and another one for odds. How can I know if a current template > loop is odd or even? I've been trying many different things and none of them > work > > Thanx > jhv > > -- > > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. -- Colin Copeland Caktus Consulting Group, LLC P.O. Box 1454 Carrboro, NC 27510 (919) 951-0052 http://www.caktusgroup.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.