WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Alignment "none" still wraps text (10 posts)

  1. anagcan
    Member
    Posted 3 years ago #

    hi, when i insert an image into my post and mark it as alignment "none", the text I write in the next line wraps aroun it instead of breaking. this only happens when the image is smaller than the full width of the post, so if i insert an image that is small but i want it to stand alone, i can't--the text wraps around it!!

    it was happening to me on this post: http://masteremergencyarchitecture.com/2011/haiti-building-back-better/
    although you cannot see it because i enlarged the images so that it wouldn't happen.

    must be in my css but im not sure what to change as i don't want to mess up the align left (im guessing that's what i have to change??).

    many thx!!

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    We need to see a page demonstrating the problem.

  3. anagcan
    Member
    Posted 3 years ago #

    ok, since its live, ive created another test post with the same content but modified to show the error.
    http://masteremergencyarchitecture.com/2011/test-post/

  4. esmi
    Forum Moderator
    Posted 3 years ago #

    404 - File or directory not found.

  5. anagcan
    Member
    Posted 3 years ago #

    oh dear. ok, here's a link that works.

    http://masteremergencyarchitecture.com/2011/bangkok-a-sinking-city/

    thx!

  6. esmi
    Forum Moderator
    Posted 3 years ago #

    Try adding:

    .content p img.alignnone {float:none;}

    to the bottom of style.css.

  7. Caroline Moore
    Member
    Posted 3 years ago #

    There's a style in typography.css that's overriding alignnone:

    p img {
        float: left;
        margin: 1em 1em 1em 0;
        padding: 0;
    }
  8. Caroline Moore
    Member
    Posted 3 years ago #

    ^^ what esmi said! :)

  9. anagcan
    Member
    Posted 3 years ago #

    @esmi -- thank you!!

    @sixhours -- thx for your input too, wasn't sure what you were suggesting though. =)

  10. anagcan
    Member
    Posted 3 years ago #

    sixhours, gotcha! thx

Topic Closed

This topic has been closed to new replies.

About this Topic