All Posts by Email, Once a Week

Media Temple logo

CSS-Tricks is brought to you in part by Media Temple, the web hosting that we both use and recommend.

Highlight all elements within Li tag on hover?

  • # February 12, 2013 at 1:41 pm

    First off here is a fiddle with the HTML & CSS/
    []( “”)

    What I’m trying to do is simply have all spans within the Li tag highlighted when a viewer hovers over the list.
    Right now the H3 Title changes only when hovering over the text.


    # February 12, 2013 at 1:50 pm

    li:hover span { … }

    # February 12, 2013 at 2:47 pm

    @HugoGiraudel WOW! Wish I could have thought of that! lol SO SIMPLE! Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed