WordPress.org

Ready to get started?Download WordPress

Forums

Help Understanding Alignment Issue WPFolio (3 posts)

  1. John
    Member
    Posted 2 years ago #

    http://www.artbydonnamarie.com/ill-find-my-way/

    I can’t figure out why images (approx 500px) inside a post are displaying as aligned center. I have them set to alignment none, and I can’t find anything in the CSS (.img, img.size-large, img.aligncenter, .entry .alignnone or div.entry) that would account for it. In case this is a clue… I have them linking to the full-size img in a new window. It seems kind of unusual that the post img link is active across the width of the entire div.entry. BTW, the text that describes the image, which sits below the image, is aligning left!
    Thanks!

  2. WPyogi
    Volunteer Moderator
    Posted 2 years ago #

    The .alignnone class is styled to be centered -- seems kinda weird, I agree.
    Line 245 of style.css file:

    }
    .entry .alignnone{
    	display: block;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    Remove the .alignnone from the img tag -- and it moves to the left.

    The below text is in a p tag-- which is by default aligned left.

  3. John
    Member
    Posted 2 years ago #

    Thank You!!

Topic Closed

This topic has been closed to new replies.

About this Topic