Forums

CSS

This topic is locked

need help-css border evry 2 row dynamically

Posted 07 Apr 2008 18:20:42
1
has voted
07 Apr 2008 18:20:42 ilan co posted:
i have asp page with vbscript
css border table evry 2 row dynamically
ho to?
but evry 2 row how

TNX

Replies

Replied 07 Apr 2008 19:19:09
07 Apr 2008 19:19:09 Alan C replied:
Hi
I do not know asp, but I have done something like this in php

make 2 classes, one with border a, one with border b

variable x

x=1

loop that writes your table

if x > 0 use class a on table row or whatever else use class b

x=x*(-1);

end of loop

that way the value of x alternates between + and - and the right class is applied

I know no asp so can not help with that part

Hope that helps

Reply to this topic