• Shaun Lorrain

    (@sheppard64)


    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

    (@sheppard64)

    Anyone have and Ideas?

    buzz

    (@buzz)

    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

    (@buzz)

    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

    (@pseudoknight)

    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.