A
A
Alexey2017-12-08 18:34:14
opencart
Alexey, 2017-12-08 18:34:14

How to make the last of the active blocks a different color in css?

Good day.
I'm making a slider (using the slick plugin), a problem arose, I need to remove the margin-right for the last of the active (those that the user currently sees) elements, but I still can't.
Simplified example: https://jsfiddle.net/w1uafe0r/7/ (you need to change the color of the last green block)
UPD : updated the example, led to a more truthful version
UPD 2 : forgot to add, it would be nice if the solution was not tied to the number active (there may be fewer of them)
UPD 3 : I updated the example again, again more truthful (the color and martig need to be changed just for the content), I'm sorry.
Maybe you have some ideas, thanks.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
DeeUs, 2019-09-27
@DeeUs

It seems to have solved the problem
. I chose SEO PRO in the cnc settings and oc_seo_urladded a line to the table where query = common / home, and the keyword is empty.
and everything started working fine.

S
Stimulate, 2017-12-08
@Stimulate

https://jsfiddle.net/w1uafe0r/4/
for a more truthful version
https://jsfiddle.net/w1uafe0r/5/

E
Exploding, 2017-12-08
@Exploding

You just need to replace this line with this one: And you won't have to look for any "last active elements"!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question