Viewing 4 replies - 1 through 4 (of 4 total)
  • tugbucket

    (@tugbucket)

    well you gave it class=”alignright” but there is no style in any CSS document on your site that defines what “alignright” is.

    Thread Starter danaherlihey

    (@danaherlihey)

    wordpress gave it that alignment.

    Chris_K

    (@handysolo)

    … and it is up to your theme to handle it properly.

    Check out the stylesheet for the Default theme to get an idea of how you might handle updating your own theme.

    I used to have this problem and have a solution for this. Open your stylesheet.css then add this code in, image alignment should work fine!

    img.centered {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    
    img.alignright {
        padding: 4px;
        margin: 0 0 2px 7px;
        display: inline;
    }
    
    img.alignleft {
        padding: 4px;
        margin: 0 7px 2px 0;
        display: inline;
    }
    
    .alignright {
        float: right;
    }
    
    .alignleft {
        float: left;
    }
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WordPress messing up image align in post’ is closed to new replies.