WordPress.org

Ready to get started?Download WordPress

Forums

Can't Center Image in Post (1 post)

  1. lorigreenberg
    Member
    Posted 6 years ago #

    I'm using the silver lexus theme and I can't get an image to center in my posts. It looks fine in the 'write' page but previewing it shows it is still aligned left. I've searched posts about this but can't relate them to my style. Here is the css style info about images:

    /* Begin Images */

    p img {padding: 0;}
    p img[alt="an image"] {float: left; margin: 0 7px 2px 0;}
    img.alignright {padding: 4px; margin: 0 0 2px 7px; display: inline;}
    img.alignleft {padding: 4px; margin: 0 7px 2px 0; display: inline;}

    .center {display: block; margin-left: auto; margin-right: auto;}
    .alignright {float: right;}
    .alignleft {float: left;}

    .images {width: 95%; text-align: center;}
    .images img {float: left; clear: both; margin: 0 auto;}

    /* End Images */

    Please let me know if there is something I can change there or if I should be looking elsewhere.

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic