Title: Image with border . . .
Last modified: August 20, 2016

---

# Image with border . . .

 *  [michael180](https://wordpress.org/support/users/michael180/)
 * (@michael180)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/image-with-border-1/)
 * I want to add an image to by blog with the theme’s border around. Normally when
   I add an image and add a caption to that the image is automatically given a border.
   But if do not add a caption, the image has none?
 * Any suggestions?

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/image-with-border-1/#post-2348642)
 * adapt the image styles in the style.css ?
 * can you post a link to your site?
 * css/formatting questions (which, imho, are not the main purpose of a wordpress
   support forum) cannot really be answered without seeing the live site.
 *  Thread Starter [michael180](https://wordpress.org/support/users/michael180/)
 * (@michael180)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/image-with-border-1/#post-2348644)
 * REF: [http://moderntimes.com/blog](http://moderntimes.com/blog)
 * Thanks for responding.
 * As long as I have a caption as in all of these images, I get the gray border 
   around the picture. But when there is no caption there is no border. I thought
   about editing the style sheet, but I was afraid it would conflict with the theme,
   and I quite like the border.
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/image-with-border-1/#post-2348660)
 * try to add these styles to style.css of the child theme (/wp-content/themes/child_of_core/
   style.css):
 *     ```
       #contentleft img {
         padding: 7px;
         background: #f4f4f4;
         -moz-border-radius: 3px;
         -khtml-border-radius: 3px;
         -webkit-border-radius: 3px;
         }
       #contentleft .wp-caption img {
         padding: 0;
         }
       ```
   
 * _**edit**_:
    this is also needed to keep the author avatar as it was:
 *     ```
       #contentleft .authorbox img {
         padding: 3px; background: #fff;
         }
       ```
   
 * (not tested for interference with all possible pages in the site)
 *  [j@revive](https://wordpress.org/support/users/jrevive/)
 * (@jrevive)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/image-with-border-1/#post-2348763)
 * Is the Image inside a post? Don’t forget you have an HTML tab to edit the HTML
   directly. You can find your <img> and add a style just to it e.g. <img style=”
   border 1px solid #eee;” />
 *  Thread Starter [michael180](https://wordpress.org/support/users/michael180/)
 * (@michael180)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/image-with-border-1/#post-2348765)
 * Great point. I didn’t think about doing it that way.
 * Thank you . . .

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Image with border . . .’ is closed to new replies.

 * 5 replies
 * 3 participants
 * Last reply from: [michael180](https://wordpress.org/support/users/michael180/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/image-with-border-1/#post-2348765)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
