Support » Fixing WordPress » Pictures in post refuse to align!

  • No matter what codes I put, like:
    <img src=”” align=”right” />

    the images just refuse to move from being aligned to the left! When I turn on visual editing mode, the pictures are aligned correctly in the editor, but in the preview, its back to the left. What’s wrong? This is really frustrating me. Just discovered that it does not happen to with another theme. Any idea where in my theme is wrong? The site is: You can see the first image there , the source code puts it to align=”right” but its still on the left. Pls help. Tks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • with your theme use <img class="left" to align left and <img class="right" to align right
    aligning is all in css.
    thus <img class="right" src="" />

    Jeremy Clark



    It’s in your css if you look in your stylesheet for something like this.

    .post a img, .post img {
    float: left;

    Just delete the float left and it will use your style you apply to the images yourself. Also just for the record the align element is depreciated which means that your site won’t vailidate and might not look the same on all browsers so use this instead.
    <img src="" style="float:right;" />

    tks macbrink & jeremy! had to use both your methods to get it to work.

    Appreciate it.

    I can’t my photo to align RIGHT it the code it says right and the 2 I put on the left went to the left? Any ideas? This is the code for the picture that won’t go to the right. I don’t know code but I took this from between the text…before and after the picture. Thanks for ANY help.


    <p class=”MsoNormal” style=”text-align: justify”><img src=”” alt=”New Mexico Dawn” align=”right” border=”2″ height=”232″ hspace=”50″ vspace=”15″ width=”309″ /></p>
    <p class=”MsoNormal” style=”text-align: justify”><span style=”font-family: Arial”>

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Pictures in post refuse to align!’ is closed to new replies.