I
I
Idwln2022-04-17 22:33:17
css
Idwln, 2022-04-17 22:33:17

Wrong last-child?

With the code .container__block:last-child::after, nothing works, while with the code .container__block::aftereverything works fine, and I get the pseudo-element that I'm waiting for, but everywhere. And I need it only at the last block!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
aftar, 2022-04-18
@aftar

don't quite understand, try :last-of-type

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question