{% for o in some_list %}
    <tr class="{% cycle 'row1' 'row2' %}">
        ...
    </tr>
{% endfor %}


On Nov 24, 2:39 pm, Juan Hernandez <vladjani...@gmail.com> 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.


Reply via email to