I am in the process of creating a list with multiple sublists nested inside. My goal is to modify the style of an individual <li>
element when it is hovered over, without affecting its parent elements.
If you want to see the code and demonstration, you can visit this link. When hovering over 1.1
, only 1.1
should turn red. The same applies for 1.3.1
- only 1.3.1
should change color.
What adjustments do I need to make in the CSS to achieve this result?
Thank you!