Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Oct 2007
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Help with Image Links

    Just wondering if anyone can help me, i am using an image as a link,

    e.g.

    <a href="somepage.html"><img src="someimage.gif" /></a>

    When displayed in IE the image has a border that is the colour of default hyperlink text to show that it can be clicked upon. Is there a way to stop this border form displaying?

    Thanks

    Mike

  • #2
    Senior Coder timgolding's Avatar
    Join Date
    Aug 2006
    Location
    Southampton
    Posts
    1,519
    Thanks
    114
    Thanked 110 Times in 109 Posts
    yes with css

    In your CSS put
    Code:
    img, a img
    {
     border:none;
    }
    You can not say you know how to do something, until you can teach it to someone else.

  • Users who have thanked timgolding for this post:

    silent_g_1984 (10-13-2007)

  • #3
    New to the CF scene
    Join Date
    Oct 2007
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Thanks very much for your help, a simple but very effective solution

    Mike


  •  

    Posting Permissions

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