Frequently Asked Questions:

Q: How do I add a simple border around all my images that I post?

Q: How do I add a simple border around all my images that I post?

A: Open up “Stylesheet” (style.css) from within your WP admin area, under “Design (’Presentation’ in WP 2.3 and earlier)” –> “Theme Editor.” Scroll way down near the bottom of the file, around line 511, look for this big ugly-looking chunk of code.

body.search div.entry-content img,
body.category div.entry-content img,
body.archive div.entry-content img,
body.home div.entry-content img,
body.single div.entry-content img {
     margin: 15px 0;
     text-align: center;
}

Add the lines shown highlighted in red. Change the number of pixels or color code specified in the first red line to customize your border.

body.search div.entry-content img,
body.category div.entry-content img,
body.archive div.entry-content img,
body.home div.entry-content img,
body.single div.entry-content img {
     margin: 15px 0;
     text-align: center;
     padding:0;
     border: 1px solid #666666;
}

Questions? Instead of emailing for support, leave a comment below so everyone can benefit from any clarification.

Leave a Reply