Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Image has a link border on it, I want it to none.

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #22591
    Garuda
    Member

    I have an image and whenever I add a link to it, it then has a blue border around it. I don’t want it to have any border so…

    I have put the image in a div with an ID of "blue" and added this code to my style sheet:

    Code:
    div#blue a {color:none; text-decoration:none}
    div#blue a:hover {color:none; text-decoration:none}

    Still I get a border, what am I doing incorrectly?

    Thanks

    #47109
    NikeAirforce1s
    Participant

    There might be a css rule for it but in your html page, when you put the anchor and image tag, do this….

    Code:
    #47110
    Garuda
    Member

    thanks Nike, I appreciate it. I fixed it with

    Code:
    a img { border:0; }

    Dang, that was easy!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.