Link to home
Start Free TrialLog in
Avatar of Pauliostro
Pauliostro

asked on

css alternate bgcolor li

Hi all at EE,

I have a wysiwyg editor in a database backend that allows updating of text for the front end of my website.
My question is, is it possible for css, on the front end,  to automatically change the background color of any li to a certain color, and then have the next li another.. and repeat..
So in a sense alternating bgcolor for each li inside of a ul. I know how to do this in php for example but wondering if possible with css from what a user has entered into the database field which is displayed.

Can someone help me with this?
Thanks
Pauliostro
ASKER CERTIFIED SOLUTION
Avatar of VirusMinus
VirusMinus
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Pauliostro
Pauliostro

ASKER

Thanks, i'll research your options.