Get ready for BLACK FRIDAY shopping starting in

Forums

ASP

This topic is locked

need help-css border evry 2 row dynamically

Posted 08 Apr 2008 08:52:50
1
has voted
08 Apr 2008 08:52:50 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 Apr 2008 11:51:10
17 Apr 2008 11:51:10 Glenn Barr replied:
How about putting a counter on it to track rows, then just use mod to get the even rows...

Something like:
If counter mod 2 > 0 Then

Make sure you increment the counter every iteration too...

HTH.
Replied 17 Apr 2008 19:27:22
17 Apr 2008 19:27:22 Alan C replied:
define two css classes, one for border on, one for border off

variable x=1;

if x=1 then use border on class else use border off class
multiply x by -1
loop ends

I only write php so you'll have to write it in asp <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>

that's how I did something similar

Reply to this topic