Support » Everything else WordPress » removing blue border around hyperlinked pictures

Viewing 3 replies - 1 through 3 (of 3 total)
  • jkeyes

    (@jkeyes)

    Add the following to your stylesheet:

    .post a img { border: none; }

    This will removed the border for all images that are hyperlinks that are contained within a post.

    If you just want it for this specific case then you could add the following attribute to the image tag:

    <img style="border: none;" .../>

    A neater way to achieve this would be to add a .digg class to your CSS:

    img.digg { border: none; }

    and add a class attribute to your image tag:

    <img class="digg" .../>

    Pizdin Dim

    (@pizdin_dim)

    Put this into the stylesheet for your chosen theme:

    p a img { border: none; }

    This removes the border for all images, within links, contained in paragraphs. Once you’ve done that, read this excellent tutorial for beginners.

    vkaryl

    (@vkaryl)

    Well, really, unless you want some of your link images to have borders, the simplest way is to put this just under the body element in the stylesheet:

    img, img a {
    border: none
    }

    Wipes it for everything below, unless you specify it in a given element.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘removing blue border around hyperlinked pictures’ is closed to new replies.