WordPress.org

Ready to get started?Download WordPress

Forums

Wrapping images (7 posts)

  1. cou
    Member
    Posted 9 years ago #

    Hi,

    My images don't wrap in my posts. I'd like them to look like this blog's. Is this just a CSS thing for me to work out, or a WP problem?

    Thanks

    Will

  2. Mark (podz)
    Support Maven
    Posted 9 years ago #

    CSS does that.
    http://www.tamba2.org.uk/wordpress/graphicalcss

    One of the pages there does images.

  3. Is this just a CSS thing for me to work out?

    Yes. =)

    http://css.maxdesign.com.au/floatutorial/

  4. podz!!! (Imagine throwing fists up into the air and yelling name like a Seinfeld character.)

    =D

  5. Mark (podz)
    Support Maven
    Posted 9 years ago #

    Rah!

    :p

  6. rossz
    Member
    Posted 9 years ago #

    Just a small syle change. Add this to your style sheet to put the image on the right and wrap the text around it:

    #content .storycontent img.right {
    margin: -3em 0 0 1em;
    float: right;
    clear: left;
    }

    When you add an image, specify the class, e.g.

    <img class="right" src="img_url" />

    IMPORTANT, put the image at the beginning of the paragraph, not the end. Trust me on this.

    The negative margin for the top is to push the image up slightly. You may need to adjust the value to get the position looking good for the style you use.

  7. cou
    Member
    Posted 9 years ago #

    Cool - thanks all, and HNY to everyone!

    Will

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.