S
S
Stopy2015-06-29 20:30:14
MySQL
Stopy, 2015-06-29 20:30:14

How to apply style to last 3 elements?

I need to apply a style to the last 3 elements, or rather, so that all elements are display: none; except for the last 3. Is it possible with css?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Anton, 2018-10-12
@lexa_gorchakov19

LIKE

D
devlocal, 2018-10-12
@devlocal

SELECT * FROM [db_name] WHERE [field] LIKE '%[value]%'

C
cha-cha, 2015-06-29
@Stopy

selector:not(:nth-last-child(-n+3)){
  display: none;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question