Topic: CSS - Every Other Row Color for tables (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=10797" title="Pages that link to Topic: CSS - Every Other Row Color for tables (Page 1 of 1)" rel="nofollow" >Topic: CSS - Every Other Row Color for tables <span class="small">(Page 1 of 1)</span>\

 
Karl
Bipolar (III) Inmate

From: Phoenix
Insane since: Jul 2001

posted posted 08-28-2002 03:50

Hey guys,

Is there anyway, using CSS, to alternate colors for TD Backgrounds for every other row?

Karl

Karl www.AZProGolf.com
karl@azprogolf.com

Pugzly
Paranoid (IV) Inmate

From: 127.0.0.1
Insane since: Apr 2000

posted posted 08-28-2002 04:58

http://www.ozoneasylum.com/Forum2/HTML/001720.html is the way that seems to work. Not totally CSS...



[This message has been edited by Pugzly (edited 08-28-2002).]

Boudga
Maniac (V) Mad Scientist

From: Jacks raging bile duct....
Insane since: Mar 2000

posted posted 08-29-2002 08:43

You're about a week behind me Karl....LOL

I have a small sample working here...



[This message has been edited by Boudga (edited 08-29-2002).]

Karl
Bipolar (III) Inmate

From: Phoenix
Insane since: Jul 2001

posted posted 08-30-2002 23:36

Cool.

I actually have ASP Script that I use to generate SQL Results based on an HTML template, a primitive XML you might say, but works great for what I'm doing.

So let say that I rewrite my code, and I'm going to add a class or id or something to every other row. What would you recommend? Could I somehow "pseudo-class" the odd row (boy, not even sure if that words fits there). I guess I'm imagining a CSS style like .myrows with another class called .myrows-odd, however I'd like the 2nd class to inherit the props ofthe first.
Do I assign the tables row a class, or each td for that row a class?

Thanks!
Karl



Karl www.AZProGolf.com
karl@azprogolf.com

Karl
Bipolar (III) Inmate

From: Phoenix
Insane since: Jul 2001

posted posted 09-04-2002 06:22

Howdy All,

I've finished my "every/other" row color ASP/CSS script. If interested, please have a look at: http://www.laketahoegymnasticscamp.com/everyother.asp

I've posted the RAW html code (which I refer to as an sql document), I have ASP code which renders true SQL based on this document and also uses this document as a template for the results outputed to the browser.

So have a peak!

Karl

Karl www.AZProGolf.com
karl@azprogolf.com



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu