• https://www.axheimer.com

    there are plenty of posts on how to remove the grey border around images, but nothing on how to add a black border around them. I’m looking for ways to add a 1px black border with a 2px white border inside the black for all post-images…

    How do I do this?

Viewing 1 replies (of 1 total)
  • Hey. Firstly, any changes you make should be done via a child theme or using a custom CSS plugin.

    Try adding the following CSS snippet to your child theme’s style.css file or your Custom CSS plugin’s editor:

    a:focus img[class*="align"], a:hover img[class*="align"], a:active img[class*="align"], a:focus img[class*="wp-image-"], a:hover img[class*="wp-image-"], a:active img[class*="wp-image-"], #content .gallery .gallery-icon a:focus img, #content .gallery .gallery-icon a:hover img, #content .gallery .gallery-icon a:active img {
    background: #fff;
    border-color: #000;
    }
    
    img[class*="align"], img[class*="wp-image-"], #content .gallery .gallery-icon img {
    border: 1px solid #000;
    padding: 2px;
    }

    Let me know if this helps, if it doesn’t give me a shout and I’ll try to help further. ??

Viewing 1 replies (of 1 total)
  • The topic ‘black frame around images’ is closed to new replies.