Support » Fixing WordPress » Images steadfastly refuse to align right

  • Resolved TheDoubleAgent


    Hey guys,

    I’m using the New Yorker theme, and, no matter what I do, I can’t get an uploaded image to sit to the right. It sits to the right in the visual editor, it is classed as ‘alignright’ in the HTML, I tried copying and pasting the code recommended in the ‘having difficulties with the uploader’ thread into my CSS… nada.

    Any help would be much appreciated.


Viewing 8 replies - 1 through 8 (of 8 total)
  • Alas, someone else having the exact same problem. I am using the Revolution blog theme from Brian Gardner. I have the HTML correct with the “alignright” and I also updated by style sheet with the code offered up.

    I understand if the admin is not working correctly and it was placing the wrong code, but the WP software not reading code correctly is very troublesome. I know it is a simple fix, but if anyone could help, TheDoubleAgent and I would be incredibly appreciative.

    Thanks in advance!

    In the css add this line.

    .alignright { float: right !important; margin:0 0 15px 15px !important; }

    The important flag will ensure it overrides any other styling.

    this worked! Thank you very much…

    I have the same problem…can someone help–it’s so annoying.
    I some images aligned left and some aligned right and they look good it the edit mode, but once i publish or view post they all go left and text no longer wraps.
    I am using Connections Theme.

    I also tried adding the code listed above to my style.css but nothing changed…where should i add it and is it right for me?

    THanks so much in advance!

    Nope, nothing for me either – although thanks for the help, Ziyphr (and cool Paulie Walnuts avatar!)

    Is there anywhere in particular I should be putting this in the css? Bear in mind I have no game whatsoever when it comes to code…


    This did the trick for me! And I put it fairly high up on the list making sure the previous tag was close and voila.

    Thank you for the fix,


    No, wait, I take it all back! For some reason WordPress wasn’t showing the alignment in previews, but everything is now working like a charm. Much appreciated!

    Hi Ziyphr,

    Which file that I should add that code?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Images steadfastly refuse to align right’ is closed to new replies.