Support » Themes and Templates » Stop border outline on links

Stop border outline on links

  • Spent last 4 hours on this. I hate to ask for help.

    My links and some images have black borders on them. I cannot find how to get rid of them. I can’t find any css on links that says there should be any border.

    Anyone know this? Please?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Jeff Chandler
    Volunteer Moderator and Voice of WP


    After playing with the CSS I found out that

    #main a{color:#006666;}

    Is the section of code in your CSS that is controlling the border color of your images. Try changing the color to the same as the background or try deleting that part of the CSS out of the style sheet.

    Jeffro, thanks, tried taking that line out, but the outline around the link & images (as well as every not-outlined link on the page) just turned the usual bright blue.

    I can’t find one line in any file of this theme that pertains to links or images having a border or outline. Why would this happen to certain links? Can someone take a peek at this? The alt for these says “Direct link to file.” Why would these links be treated differently?

    Thanks for your experience, as I have none.

    Jeff Chandler
    Volunteer Moderator and Voice of WP


    Ok. I think I have finally figured out the problem. Look for

    #content p img {
    	margin-right: 8px;
    	float: left;

    In your CSS stylesheet and add this line to it


    That should make the borders around the images in your content disappear entirely.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Stop border outline on links’ is closed to new replies.