Grow your CSS skills. Land your dream job.

Remover hover background from linked images

  • # December 14, 2011 at 1:47 am

    I want to remove the background color that appears when hovering over an image that is linked. I have tried all sorts of things but can’t find a solution.

    Here is a fiddle to demonstrate my point: http://jsfiddle.net/stevencrader/5UjvA/

    # December 14, 2011 at 1:56 am

    http://jsfiddle.net/B4Wnd/

    Honestly, I think this is the only thing that will do it…just simply adding a class to the anchor since the image isn’t actually inheriting the background you need to remove the specific instance’s background…I know you didn’t want to add a class…but, i don;t think there is any other way to target that specific anchor instance.

    # December 14, 2011 at 2:18 am

    No need for classes, you just need to be more specific with your selectors. See here: http://jsfiddle.net/sl1dr/yXJms/

    # December 14, 2011 at 2:27 am

    Awesome. Thank you @joshuanhibbert

    # December 14, 2011 at 2:28 am

    @johuanhibbert durr, haha, sometimes the simplest solutions are often the most difficult.

    # December 14, 2011 at 2:53 am

    No worries mate!

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

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".