Grow your CSS skills. Land your dream job.

simple question

  • # May 2, 2010 at 3:32 pm

    Ok this should be a no brainer, but somehow I can’t seem to make this work

    I have an image link on a page, and I want to remove the black bar when I hover over the image.
    Here is the page – the link is the green sticker in the top right corner.

    http://www.by-x.dk/nyheder.html

    i have tried giving the image a class and id where i do the following

    Code:
    outline: none;
    border-style: none;
    border: 0;

    I have done this before where it did the trick.

    any ideas?

    Thanks
    Simon

    # May 3, 2010 at 2:48 am

    Change:

    Code:
    a:hover {
    color: white;
    background-color:black;
    }

    to:

    Code:
    #content a:hover {
    color: white;
    background-color:black;
    }
    # May 3, 2010 at 3:33 am

    Great!

    Thanks a lot

    /Simon

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

You must be logged in to reply to this topic.

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