What are you expecting it to do? What is it doing instead? Do you have a demo? Live link? Correct me if I'm wrong, but I think your question is kinda broad when you want to know "why isn't it working"
My apologies, I think I figured out my own problem while putting it together in codepen.
Essentially, I wanted a way, when a user :focus on an input, for the li outside of it to change its color, but that isn't possible, since it's on the outside.
Yep, you can't link to other elements that aren't related. What you could potentially do is use the sibling or adjacent selectors if the elements are one after the other.
Can someone tell me why this isn't working... Thank you!
Dude...
http://css-tricks.com/how-to-ask-a-good-question-in-the-forums/
http://css-tricks.com/forums/discussion/comment/87079
http://codepen.io
What are you expecting it to do? What is it doing instead? Do you have a demo? Live link? Correct me if I'm wrong, but I think your question is kinda broad when you want to know "why isn't it working"
My apologies, I think I figured out my own problem while putting it together in codepen.
Essentially, I wanted a way, when a user :focus on an input, for the li outside of it to change its color, but that isn't possible, since it's on the outside.
Sounds like this is a job for jQuery.
Yep, you can't link to other elements that aren't related. What you could potentially do is use the sibling or adjacent selectors if the elements are one after the other.
For example: http://codepen.io/andyunleashed/pen/sABix
Just created a JQuery solution for if the UL is outside of the realm of using CSS.
http://codepen.io/andyunleashed/pen/hBKHi