Thursday, January 17, 2019

html - Changing elements CSS properties based on child element








This is my markup:





  1. 1

  2. 2






And I want to change the background-position property of the li element that has a span child with the class current. In this case, the second list item.



I do consider myself proficient with CSS, but I really cannot think of how to do that. Maybe there isn't a way, or I'm just having a brain fart.



Thanks!

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...