Title: Alignment on Attachments
Last modified: August 19, 2016

---

# Alignment on Attachments

 *  [Shaun Lorrain](https://wordpress.org/support/users/sheppard64/)
 * (@sheppard64)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/alignment-on-attachments/)
 * When I upload an image now the `class="alignleft size-medium wp-image-76"` works
   but `class="alignright size-medium wp-image-76"` doesn’t. When you upload an 
   image you have the choice of where you want to place it and I keep choosing right
   but it doesn’t show correctly. Anyone have any ideas?

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

 *  Thread Starter [Shaun Lorrain](https://wordpress.org/support/users/sheppard64/)
 * (@sheppard64)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/alignment-on-attachments/#post-725806)
 * Anyone have and Ideas?
 *  [buzz](https://wordpress.org/support/users/buzz/)
 * (@buzz)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/alignment-on-attachments/#post-726056)
 * This was one of the 2.5 features that I was looking forward to, but it appears
   to be non-functional. I tried right and center aligned images in many different
   themes, but they all align left. Will we have to modify our style sheets for 
   these classes?
 *  [buzz](https://wordpress.org/support/users/buzz/)
 * (@buzz)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/alignment-on-attachments/#post-726057)
 * For now, I guess we’ll have to settle for adding align=”left” (or right, or center)
   in the img tag. Depending on your theme and length of post, you may also have
   to add `<br clear="all" />` at the end of the post.
 *  [pseudoknight](https://wordpress.org/support/users/pseudoknight/)
 * (@pseudoknight)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/alignment-on-attachments/#post-726060)
 * You have to add some code to your style sheet for the class to function correctly.
   Some of it can be found in the default template. (oddly, they misnamed the class“
   aligncenter” as “centered” in the style sheet)
 * img.aligncenter {
    display: block; margin-left: auto; margin-right: auto; }
 * img.alignright {
    padding: 4px; margin: 0 0 2px 7px; display: inline; }
 * img.alignleft {
    padding: 4px; margin: 0 7px 2px 0; display: inline; }
 * .alignright {
    float: right; }
 * .alignleft {
    float: left }
 * I guess they forgot about this change when they said it wouldn’t affect templates.

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

The topic ‘Alignment on Attachments’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [pseudoknight](https://wordpress.org/support/users/pseudoknight/)
 * Last activity: [18 years, 2 months ago](https://wordpress.org/support/topic/alignment-on-attachments/#post-726060)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
