WordPress.org

Support

Support » Requests and Feedback » Image placement problems

Image placement problems

  • I love the new version…. but….

    I don’t seem to be able to get the placement right. I choose to have margins so the text stands away from the image and when I choose to place it left the text does not start at the top of the image.

    Is this a bug?

    Lookikng at the code between 2.5 and 2.6 the older version seems to put a ;float in the code but the new version doesn’t.

    Help???

Viewing 7 replies - 1 through 7 (of 7 total)
  • The code in question that should be rendered is: <img class=”alignleft” style=”border: 0pt none; margin: 1px 5px; float: left;” src=

    We don’t get this with 2.6 🙁

    Has this been acknowledged?

    I found that image alignment and text wrapping worked perfectly in the Default theme, but that some things didn’t work well with several non-stock themes.

    Adding this to my CSS solved my alignment and text wrap problems with the themes. (Credit to SADISH, designer of MistyLook and FallSeason themes).

    img.left, .alignleft
    {
    float: left;
    margin: 0 14px 3px 0;
    }
    img.right, .alignright
    {
    float: right;
    margin: 0 14px 3px 0;
    }
    
    img.centered, .centered {
    text-align: center;
    }

    Maybe you have a theme problem, and not a WP problem.

    Thanks for that… I’ll wack it in my CSS and see what goes 🙂

    Voila! You’re a star… something must have happened with the WP code though as my theme hasn’t changed. Thank you for your help though – much appreciated.

    I’m sure you’ve already noticed, but the margin for img.right should be like this:

    margin: 0 0px 3px 14px;

    Yeah, worked it out 😀

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Image placement problems’ is closed to new replies.