WordPress.org

Ready to get started?Download WordPress

Forums

Aligning text right when using relative positioning with image (4 posts)

  1. sirtues
    Member
    Posted 3 years ago #

    I am have an image on an angle and am trying to wrap the text neatly around the image. The image is also positioned oddly (intentionally) sitting outside the page borders using relative positioning. If I set the text to right align, it looks as though WordPress creates a space in the page relative to the size of the image and then the text wraps around that space. But as my image is positioned, all I get is one huge empty space.
    Make sense?

    Basically, how do I get the text closer to the image.

    http://www.katiehemmeter.com/wp/about-me/

  2. jtlowe22
    Member
    Posted 3 years ago #

    Will you please provide a screenshot of what is happening?

  3. datasoftict
    Member
    Posted 3 years ago #

    Am I right in thinking it is the 4 photos in the png file that comes over the top of the text?

    If so one problem is that it is outside the div that you have the text in - one is clas format_text the other is div id strip.

    I don't know if it is possible to get a flow around a offset image as the image is within a rectangle that is 151 x496. That is how the browser will read it and text will format around it.

  4. Curtiss Grymala
    Member
    Posted 3 years ago #

    Have you thought about trying to use negative margins on the image instead of relative positioning? They tend to have similar positioning effects, but the negative margins will not remove the image from the box model.

    If that doesn't work, you'll most likely need to put an empty placeholder inside the content div and float it to the right, so that it creates an imaginary box in the space that the image takes up visually.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags