I
I
id_baton4eg2015-09-29 21:14:41
css
id_baton4eg, 2015-09-29 21:14:41

How to alternate colors for the same css element?

Tell me how for one Css element you can alternate different background colors?
I want to alternate, one menu item has a white background with black text, the next item has a black background and white text
.widget.woocommerce li {
background-color: #fff;
color: #000;
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
id_baton4eg, 2015-09-29
@id_baton4eg

You can not answer, the solution is just like 2 kopecks.
Google unbanned me.
:nth-child(2n)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question