WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Cannot align image to the right (3 posts)

  1. Bliss7
    Member
    Posted 5 years ago #

    I can't seem to align an image to the right and have the text flow around it.

    The theme was working fine in previous WordPress versions, so it's not a problem with the CSS...I don't think so.

    Could there be a problem with the new image settings for WordPress 2.7? The button appears over the image now...but seems to be buggy to me.

    The old image button in the previous WordPress versions worked fine. I prefer that over the new one, although seems to me these alignment issues are always a problem with WordPress, WP has never gotten this right...the HTML editor is ALWAYS buggy for some reason.

    Any advice?

    Thanks!

  2. Bliss7
    Member
    Posted 5 years ago #

    OK.

    If it helps anyone to know....I installed this plugin and it resolved my problem...the image now aligns right...phew! I used the OLD button...the one with the small "tree" in the editor toolbar....

    http://wordpress.org/extend/plugins/tinymce-advanced/

    But yeah, I still wish WP could make the HTML editor work properly out of the box. This is one of the perennial WordPress issues.

    http://wordpress.org/support/topic/232688?replies=13

    Regards,
    Bliss7

  3. badz525
    Member
    Posted 5 years ago #

    /*fixing image positioning*/
    img {
    max-width: 95%;
    min-width: 50%;
    border: 10px solid #2c2c2c;
    }

    img:hover {
    border: 10px solid #363636;
    }

    img.centered {
    display: block;
    margin-left: auto;
    margin-right: auto;
    }

    img.alignright {
    padding: 0px;
    margin: 0px 0px 0px 10px;
    display: inline;
    }

    img.alignleft {
    padding: 0px;
    margin: 0px 10px 0px 0px;
    display: inline;
    }

    .alignright {
    float: right;
    }

    .alignleft {
    float: left;
    }

    i use this fix in every theme i developed and it works like charm

Topic Closed

This topic has been closed to new replies.

About this Topic