WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] I add a photo to a post and it slid off the page. (7 posts)

  1. chriscourselle
    Member
    Posted 7 months ago #

    http://truckerinfo.eu/2013/12/05/community/
    I add a photo to a post and it slid off the page. if you use fire bug you will see the the photo is still in the entry-content div. the photo is 700px x 700px.

  2. esmi
    Forum Moderator
    Posted 7 months ago #

    Can you replicate the problem using the default Twenty Thirteen theme with all plugins deactivated?

  3. You mean the post-thumbnail?

  4. Lance Willett
    Themer
    Posted 7 months ago #

    I'm pretty certain this is by design, the images in Twenty Fourteen post content that are right or left aligned are meant to "pull" out of the main column a bit.

  5. chriscourselle
    Member
    Posted 7 months ago #

    I found the problem, there is a bad css rule.

    .full-width .site-content blockquote.alignleft, .full-width .site-content img.size-full.alignleft, .full-width .site-content img.size-large.alignleft, .full-width .site-content img.size-medium.alignleft, .full-width .site-content .wp-caption.alignleft {
    margin-left: -168px;
    }
    If i deactivate this margen-left rule then the photo slides back in to place and stays in the confines of the div tag.

  6. Lance Willett
    Themer
    Posted 7 months ago #

    Yes, that's the CSS rule I mentioned that does the "pull" style to make the image left or right aligned. It's intentional.

  7. chriscourselle
    Member
    Posted 7 months ago #

    I add a child them and removed that css rule. I think is looks better confind to the div/ mini page.
    .entry-content img {
    margin-left: 0px !important;
    }

Reply

You must log in to post.

About this Topic

Tags

No tags yet.