WordPress.org

Ready to get started?Download WordPress

Forums

CSS Text And Images (5 posts)

  1. pizzaman
    Member
    Posted 8 years ago #

    I have each post in a "box" with a border and a backgound.

    I've successfully wrapped text around an image with the CSS float. What I can't figure out is this. If the text is 1 line or not enough to actually wrap around the image, text for the following post will position itself along side the image inside the box. It's the same in FF, IE and Opera so I don't think it's a browser issue.

    What I do to alleviate the problem is put the text under the image. I'd rather have the text to the right and top of the image.

  2. Truth
    Member
    Posted 8 years ago #

    a link to a sample post to show would be good.. :)

  3. pizzaman
    Member
    Posted 8 years ago #

    Here's the link. Scroll down to the 4th post on the page.

    Link

  4. Sam_a
    Member
    Posted 8 years ago #

    If the text is 1 line or not enough to actually wrap around the image, text for the following post will position itself along side the image inside the box.

    Add

    .post {
    overflow: auto; /* contain floats */
    height: 1%; /* IE helper */
    }

    http://css-discuss.incutio.com/?page=ClearingSpace

  5. pizzaman
    Member
    Posted 8 years ago #

    Thanks Sam. Fixed it.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags