Title: Image Width Issue with Caption Feature
Last modified: August 20, 2016

---

# Image Width Issue with Caption Feature

 *  [alvaradopau](https://wordpress.org/support/users/alvaradopau/)
 * (@alvaradopau)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/image-width-issue-with-caption-feature/)
 * Hi everyone, I’ve been trying to get rid of some space that gets added to image
   margins when adding a caption. I read [these](http://wordpress.org/support/topic/10px-added-to-width-in-image-captions)
   [two](http://wordpress.org/support/topic/control-of-image-caption-width?replies=7)
   posts on the forum and some other fixes online but nothing has worked for me (
   I deleted the value on the media.php file, installed the fix margin plugin offered
   in one of mentioned threads, and tried a bunch of CSS, nothing).
 * In my case the image is resized from 560 to 553, not a huge deal but it gets 
   displaced to the right, throwing the design off. You can see a captioned image
   [here](http://bainspiration.com/en/2012/07/25/the-summers/), the difference can
   be seen when comparing the first image to the second.
 * I really don’t know what to do. Here are the latest CSS rules I’ve tried:
 *     ```
       #attachment .wp-caption img {
       width: auto !important;
       padding: 0px;
       margin: 0px;
       }
   
       .wp-caption img {
       width: auto !important;
       margin: 0px;
       padding: 0px;
       border: none;
       }
       ```
   
 * Really appreciate any tips or help.

The topic ‘Image Width Issue with Caption Feature’ is closed to new replies.

## Tags

 * [captions](https://wordpress.org/support/topic-tag/captions/)
 * [wp-caption](https://wordpress.org/support/topic-tag/wp-caption/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [alvaradopau](https://wordpress.org/support/users/alvaradopau/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/image-width-issue-with-caption-feature/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
