Title: Image Caption Alignment Help
Last modified: August 20, 2016

---

# Image Caption Alignment Help

 *  [JRiley21](https://wordpress.org/support/users/jriley21/)
 * (@jriley21)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/image-caption-alignment-help/)
 * I need some help with my image captions. Basically, I just want to line everything
   up with the post content. Right now, the margins aren’t set correctly and for
   the life of me I can’t get caption images to respond to any of my code changes.
 * [Here’s an example of what I’m talking about.](http://lakernation.com/2011/06/profiling-mike-browns-coaching-staff/)(
   notice the mis-alignment compared to the post content)
 * Do I need to define a whole new CSS class for this? If so, what would that be
   called?
 * I appreciate any/all help! Thanks. 🙂

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/image-caption-alignment-help/#post-2156217)
 * > notice the mis-alignment compared to the post content
 * Um – no. On your home page, I see quite normally centred post captions.
 *  Thread Starter [JRiley21](https://wordpress.org/support/users/jriley21/)
 * (@jriley21)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/image-caption-alignment-help/#post-2156218)
 * Thanks for the quick reply. I think I probably explained this pretty poorly, 
   I apologize.
 * It’s the image positioning on captioned photos. For example, the image on the
   post I attached above sits about 10px too high and maybe a few pixels in from
   the left border.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/image-caption-alignment-help/#post-2156219)
 * Ah! Now I see it! style.css – change:
 *     ```
       notice the mis-alignment compared to the post content.wp-caption {
           background-color: #F8F8F8;
           border: 1px solid #DDDDDD;
           line-height: 0;
           margin: 0 5px 10px;
           padding:0;
           text-align: center;
       }
       ```
   
 * to:
 *     ```
       .wp-caption {
           background-color: #F8F8F8;
           border: 1px solid #DDDDDD;
           line-height: 0;
           margin: 0 5px 10px;
           padding: 5px 0 0;
           text-align: center;
       }
       ```
   
 *  Thread Starter [JRiley21](https://wordpress.org/support/users/jriley21/)
 * (@jriley21)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/image-caption-alignment-help/#post-2156223)
 * Esmi- Thanks, that helped with aligning the image inside the caption area,which
   is great, but not entirely what I was going for. 🙂
 * I need the entire image (with the caption) to line up with the post content.
 * Here’s an illustration referencing the spacing issues that I’m talking about:
   [Here.](http://lakernation.com/wp-content/uploads/2011/06/Profiling-Mike-Browns-Coaching-Staff-Laker-Nation_1309304352030.jpg)
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/image-caption-alignment-help/#post-2156319)
 * style.css:
 *     ```
       #content p, content li {
       	font-family: Verdana,Arial,Geneva,Helvetica,sans-serif;
       	font-size: 12px;
       	letter-spacing: normal;
       	line-height: 16px;
       	color: #444444;
               padding-top: 8px;
       	margin-top: 5px;
       }
       ```
   
 * these lines are causing the image ‘misalignment’:
 *     ```
       padding-top: 8px;
       margin-top: 5px;
       ```
   
 * possibly change `top` to `bottom` to keep the paragraph spacing.

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

The topic ‘Image Caption Alignment Help’ is closed to new replies.

## Tags

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

 * 5 replies
 * 3 participants
 * Last reply from: [Michael](https://wordpress.org/support/users/alchymyth/)
 * Last activity: [14 years, 11 months ago](https://wordpress.org/support/topic/image-caption-alignment-help/#post-2156319)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
