Title: Image caption not centered
Last modified: August 19, 2016

---

# Image caption not centered

 *  Resolved [siggia](https://wordpress.org/support/users/siggia/)
 * (@siggia)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/image-caption-not-centered/)
 * I’ve searched for the solution to this but haven’t found it anywhere, so here
   goes.
 * When I upload a picture and add a caption to it, the caption underneath it is
   not centered, and, the border around it isn’t displayed correctly (although the
   preview in WP is just fine) – in this particular case, the lef aligned image 
   loses the border on the left. [Take a look at how it is](http://english.midgardur.net/about/).
 * Any ideas?
 * I am using the [iNove](http://wordpress.org/extend/themes/inove/) theme (version
   1.2.3)

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

 *  Thread Starter [siggia](https://wordpress.org/support/users/siggia/)
 * (@siggia)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/image-caption-not-centered/#post-970005)
 * Nevermind, after reading _a lot_ of threads here, I just decided to copy/paste
   the code from the default theme.
 *  [glenngeiger](https://wordpress.org/support/users/glenngeiger/)
 * (@glenngeiger)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/image-caption-not-centered/#post-970177)
 * Could you let me know what code you copied, from what file, and where you pasted
   it?
 * Much appreciated, (same issue – sort of)
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [17 years, 4 months ago](https://wordpress.org/support/topic/image-caption-not-centered/#post-970178)
 * Read: [http://wordpress.org/support/topic/164999](http://wordpress.org/support/topic/164999)
 *  Thread Starter [siggia](https://wordpress.org/support/users/siggia/)
 * (@siggia)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/image-caption-not-centered/#post-970228)
 * Exactly, thanks Otto42.
 * Glenngeiger, just copy all the ‘wp.caption’ from the link Otto provided into 
   your style.css file (I just pasted it at the very bottom, doesn’t matter where).
 * This code:
 *     ```
       .wp-caption {
       	border: 1px solid #ddd;
       	text-align: center;
       	background-color: #f3f3f3;
       	padding-top: 4px;
       	margin: 10px;
       	-moz-border-radius: 3px;
       	-khtml-border-radius: 3px;
       	-webkit-border-radius: 3px;
       	border-radius: 3px;
       }
   
       .wp-caption img {
       	margin: 0;
       	padding: 0;
       	border: 0 none;
       }
   
       .wp-caption p.wp-caption-text {
       	font-size: 11px;
       	line-height: 17px;
       	padding: 0 4px 5px;
       	margin: 0;
       }
       ```
   

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

The topic ‘Image caption not centered’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [siggia](https://wordpress.org/support/users/siggia/)
 * Last activity: [17 years, 4 months ago](https://wordpress.org/support/topic/image-caption-not-centered/#post-970228)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
