Forums
This topic is locked
need help-css border evry 2 row dynamically
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
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