WordPress.org

Ready to get started?Download WordPress

Forums

Image placement problems (8 posts)

  1. Anonymous
    Unregistered
    Posted 5 years ago #

    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???

  2. Soulgirl
    Member
    Posted 5 years ago #

    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 :(

  3. Soulgirl
    Member
    Posted 5 years ago #

    Has this been acknowledged?

  4. tibc
    Member
    Posted 5 years ago #

    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.

  5. Soulgirl
    Member
    Posted 5 years ago #

    Thanks for that... I'll wack it in my CSS and see what goes :)

  6. Soulgirl
    Member
    Posted 5 years ago #

    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.

  7. tibc
    Member
    Posted 5 years ago #

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

    margin: 0 0px 3px 14px;

  8. Soulgirl
    Member
    Posted 5 years ago #

    Yeah, worked it out :D

Topic Closed

This topic has been closed to new replies.

About this Topic