WordPress.org

Ready to get started?Download WordPress

Forums

right-aligned image shifted to the right (3 posts)

  1. Francois
    Member
    Posted 5 months ago #

    Hi,

    I've just installed WP and am using the default unmodified Twenty Thirteen theme.
    In one post I have an image with the alignment set to right. It displays well in the visual editor but it is not correctly aligned (on the right) with the text in the preview or live post. See here (blog.linkody.com/seo/using-linkody-to-monitor-anchor-text-and-avoid-google-penalties)
    What's the problem?
    Cheers

  2. martcol
    Member
    Posted 5 months ago #

    I think that is happening because of this CSS:

    .entry-content img.alignright, .entry-content .wp-caption.alignright {
      margin-right: -60px;
    }

    It's adding a negative margin of 60px to the alignright image which pushes it out of the container. It would be easy enough to change that with a child theme style sheet but what I don't know, is why it is there in the first place.

  3. Francois
    Member
    Posted 5 months ago #

    I created a child theme and changed it. Thanks.

Reply

You must log in to post.

About this Topic