Title: Problem with captions
Last modified: August 19, 2016

---

# Problem with captions

 *  [zimzum](https://wordpress.org/support/users/zimzum/)
 * (@zimzum)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/problem-with-captions/)
 * I am having trouble centering the caption text underneath photos. I also am not
   able to figure out how to get rid of the white border that goes around the pic,
   which you can see here [http://haunted-gettysburg.com/trostle-farm-ghosts/](http://haunted-gettysburg.com/trostle-farm-ghosts/).
   That was not there until I added the caption, so I assume it’s connected to that,
   but I already went to the css and added border: 0; to the wp-caption and caption
   img etc..

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/problem-with-captions/#post-1262017)
 * To remove the white borders, try getting rid of:
 *     ```
       .wp-caption {
       background-color:#FFFFF2;
       border:1px solid #FFE8DD;
       }
       ```
   
 * in your page header – presumably added by Theme Tweaker. To center the caption
   text, edit style.css and change:
 *     ```
       .wp-caption p.wp-caption-text {
       background-color:#121212;
       border:0 none;
       font-size:11px;
       line-height:17px;
       margin:0;
       padding:0 4px 5px;
       }
       ```
   
 * to
 *     ```
       .wp-caption p.wp-caption-text {
       background-color:#121212;
       border:0 none;
       font-size:11px;
       line-height:17px;
       margin:0;
       padding:0 4px 5px;
       text-align:center;
       }
       ```
   
 *  Thread Starter [zimzum](https://wordpress.org/support/users/zimzum/)
 * (@zimzum)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/problem-with-captions/#post-1262044)
 * Thanks esmi. The text is now centered. I don’t know why but the first thing didn’t
   do anything. Im starting to think that the white around the photo is actually
   a background color of something. I just can’t figure out what.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/problem-with-captions/#post-1262047)
 * No – it’s definitely from the CSS in your page header.
 *  Thread Starter [zimzum](https://wordpress.org/support/users/zimzum/)
 * (@zimzum)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/problem-with-captions/#post-1262098)
 * ok it’s fixed now. It was theme tweaker as you said.

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

The topic ‘Problem with captions’ is closed to new replies.

 * 4 replies
 * 2 participants
 * Last reply from: [zimzum](https://wordpress.org/support/users/zimzum/)
 * Last activity: [16 years, 7 months ago](https://wordpress.org/support/topic/problem-with-captions/#post-1262098)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
