Forums

CSS

This topic is locked

need help-css border evry 2 row dynamically

Posted 17 years ago
1
has voted
17 years ago 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 17 years ago
17 years ago 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