1
jboybags
alternate row colors in center-center block
  • 2005/8/9 8:08

  • jboybags

  • Just popping in

  • Posts: 12

  • Since: 2005/7/28


help! how can i make an alternating row colors in center center block? or if not, using the td. Ive tried cycle values but it alternates color in every block, not every rows inside a specific block

2
mboyden
Re: alternate row colors in center-center block
  • 2005/8/9 15:12

  • mboyden

  • Moderator

  • Posts: 484

  • Since: 2005/3/9 1


Cycle values is the answer. You can still cycle values, but you need to apply the changes to the row defintion (the TR) instead of the cell definition (the TD/TH). I define two classes -- odd & even -- each with a differing background color, and then cycle through the classes to apply to each row which does what you are asking.
Pessimists see difficulty in opportunity; Optimists see opportunity in difficulty. --W Churchill

XOOPS: Latest | Debug | Hosting and Web Development

Login

Who's Online

132 user(s) are online (47 user(s) are browsing Support Forums)


Members: 0


Guests: 132


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits