Title: Uneven Image Borders
Last modified: August 19, 2016

---

# Uneven Image Borders

 *  [lnash](https://wordpress.org/support/users/lnash/)
 * (@lnash)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/uneven-image-borders/)
 * On my blog
 * [http://www.LeahNash.com/blog](http://www.LeahNash.com/blog)
 * I somehow have ended up with uneven gray borders on the images. The border does
   not display on the right side. Not sure how this happened or how to fix it. I
   like have the border there, just not uneven. It was not a problem before and 
   then I made a code error when I was posting and now I can’t fix it.
 * Any thoughts?
 * Thanks much.

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

 *  [Edward Caissie](https://wordpress.org/support/users/cais/)
 * (@cais)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/uneven-image-borders/#post-1606693)
 * You might try looking in your theme’s functions.php file for the following line
   of (or similar) code:
 *     ```
       if ( ! isset( $content_width ) ) $content_width = 588;
       ```
   
 * If it is not there try adding it to the end of the file just before the last `?
   >`.
 * Setting the content width to 2px less than the `<div>` width may bring the 2px
   wide border back into view.
 *  Thread Starter [lnash](https://wordpress.org/support/users/lnash/)
 * (@lnash)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/uneven-image-borders/#post-1606700)
 * I tried it, but it didn’t work. Thanks for the suggestion though.
 *  [Edward Caissie](https://wordpress.org/support/users/cais/)
 * (@cais)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/uneven-image-borders/#post-1606704)
 * Perhaps I miss calculated … either try a value of 586 in the above line; or, 
   try changing line 162 in your style.css to this:
 *     ```
       .attachment-medium {
         display: inline;
         max-width: 586px;
       }
       ```
   
 * Note the `max-width: 586px;`
 *  Thread Starter [lnash](https://wordpress.org/support/users/lnash/)
 * (@lnash)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/uneven-image-borders/#post-1606939)
 * That totally worked! Nice job, thanks so much.
 * -Leah
 *  [Edward Caissie](https://wordpress.org/support/users/cais/)
 * (@cais)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/uneven-image-borders/#post-1606974)
 * You’re welcome! I’m glad the CSS worked for you.

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

The topic ‘Uneven Image Borders’ is closed to new replies.

## Tags

 * [Image border](https://wordpress.org/support/topic-tag/image-border/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [Edward Caissie](https://wordpress.org/support/users/cais/)
 * Last activity: [15 years, 9 months ago](https://wordpress.org/support/topic/uneven-image-borders/#post-1606974)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
