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 6 of 6
  1. #1
    New Coder
    Join Date
    Mar 2012
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Angry Change image link color border in IE

    Hello - I've searched the site and found some other posts about this, but their answers didn't seem to work for me.

    My images that are links are only showing the border colors in IE.

    Here is the html I'm currently using to change link color:

    <style type="text/css">
    a:link {COLOR: #feffc2;}
    a:visited {COLOR: #feffc2;}
    a:hover {COLOR: #feffc2;}
    a:active {COLOR: #feffc2;}
    .pic a:link {COLOR: #feffc2;}
    .pic a:visited {border:4px solid #feffc2;}
    .pic a:hover {border:4px solid #feffc2;}
    .pic a:visited {border:4px solid #feffc2;}
    </style>

  • #2
    Senior Coder DanInMa's Avatar
    Join Date
    Nov 2010
    Location
    Salem,Ma
    Posts
    1,577
    Thanks
    13
    Thanked 248 Times in 248 Posts
    show the html for one of your links please

  • #3
    New Coder
    Join Date
    Mar 2012
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    just a simple <a href=""> link - Should that be more complicated to change the color?

    <a href="http://maps.google.com/maps?q=14260+W.+Meeker+Blvd+Sun+City+West+AZ+85375" target="_blank"><img src="http://practicetcp.net23.net/images/direct.gif"></a>

  • #4
    Senior Coder DanInMa's Avatar
    Join Date
    Nov 2010
    Location
    Salem,Ma
    Posts
    1,577
    Thanks
    13
    Thanked 248 Times in 248 Posts
    well you are only applying the borders to anchors found within elements that have a class of "pic",
    im not seeing where you are applying .pic in this example

  • #5
    New Coder
    Join Date
    Mar 2012
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I figured it out - I just needed to add border="0" to think <img I was using as a link. If it was that simple, I should have seen it in the hour that I looked for it.

    thank you

  • #6
    Senior Coder DanInMa's Avatar
    Join Date
    Nov 2010
    Location
    Salem,Ma
    Posts
    1,577
    Thanks
    13
    Thanked 248 Times in 248 Posts
    oh sorry you meant around the image
    gotcha


  •  

    Posting Permissions

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