Chance Turcotte
Chance Turcotte

Reputation: 1

I want each HTML line to alternate in color inside a textbox, back and forth

I have scrolling HTML text in Actionscript 2. How do I make each line alternate colors back and forth (for intended readability)? I don't want to have to code the color for all 600 lines or use mass-replace function, if possible!

Upvotes: 0

Views: 272

Answers (1)

aug
aug

Reputation: 11714

Take a look at Zebra striping. You don't need to use Javascript for this. The :nth-child(odd) in CSS should suffice.

Upvotes: 1

Related Questions