S
S
Sergey750il2019-12-07 18:22:00
css
Sergey750il, 2019-12-07 18:22:00

How to implement such logic of selection of elements?

Good day. How to highlight the first and last element in each thread? The number of elements can be completely different.
https://jsfiddle.net/c5b0mda1/2/

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dom1n1k, 2019-12-07
@dom1n1k

If you want pure CSS, then you will have to add additional wrappers for the left and right block groups.
If for some reason this is not suitable, then a JS script.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question