WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Images steadfastly refuse to align right (9 posts)

  1. TheDoubleAgent
    Member
    Posted 6 years ago #

    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.

    Thanks!

  2. kbushbak
    Member
    Posted 6 years ago #

    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!

  3. Ziyphr
    Member
    Posted 6 years ago #

    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.

  4. kbushbak
    Member
    Posted 6 years ago #

    this worked! Thank you very much...

  5. llworldtour
    Member
    Posted 6 years ago #

    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!
    LL
    http://www.llworldtour.com

  6. TheDoubleAgent
    Member
    Posted 6 years ago #

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

    Thanks!

  7. shackbase
    Member
    Posted 6 years ago #

    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,

    ..Tony

  8. TheDoubleAgent
    Member
    Posted 6 years ago #

    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!

  9. belalang.daun
    Member
    Posted 5 years ago #

    Hi Ziyphr,

    Which file that I should add that code?
    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic