Results 1 to 5 of 5

Thread: Border around Image Link

  1. #1
    Join Date
    Jul 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Border around Image Link

    Hi everyone, I am having a problem with a webpage that I am doing for my Web Design class. I have all of the images and stuff that I need for the page that I am designing. The only problem is with my images. Each image is where it is supposed to be and I want to link my images to other pages within my webpage. The problem is, when I put the code in, it has this purple border around the image and it makes my page look really unattractive. When I view other pages I see that there are images that can be clicked on, but it does not have that ugly purple border around them. Is there anytype of code to put in to fix this issue so that I can link my images without that border around it.

    Thanks

  2. #2
    Join Date
    Apr 2006
    Posts
    429
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    HTML Code:
    <a href="somelink.html"><img src="pic.jpg" border="0" /></a>

  3. #3
    Join Date
    May 2005
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Or add this line to your external CSS file:
    Code:
    img
    {
       border: 0px;
    }
    This way you don't need to add it to every image

  4. #4
    Join Date
    Jul 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I am going to try it right now. Thank you so much for taking the time to help me. I will let you know what happens.

    Thanks

  5. #5
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Code:
    a img {
       border-style: none;
    }
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •