Wednesday, May 29, 2019

css selectors - CSS Select first element found with attribute

I've tried :first-child :nth-of-type and a few other ways of selecting the first and last element found not based on the childs parent.



With CSS I want to select the first and last element found with a specific attribute regardless.




















How would I select the first and last "data-select" element found regardless of its parent container?

No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...