WordPress.org

Ready to get started?Download WordPress

Forums

Picture not getting aligned to center (4 posts)

  1. ghaus
    Member
    Posted 5 years ago #

    I use this code, but still the picture is not getting aligned to center.

    This is the code in my stylesheet,

    .alignright{
    float:right;
    padding-right:20px;
    }

    .alignleft{
    float:left;
    padding-left:20px;
    }

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

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

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

    Can somebody help me. I am using this theme http://cssace.com/free-wp-premium-theme-is-here/

    I would be very thankful if someone helps me out. Check my blog for the problem http://www.addictivetips.com

    Regards, Nakodari

  2. ghaus
    Member
    Posted 5 years ago #

    Guys please help me here. Please guys.

  3. Brigitte
    Member
    Posted 5 years ago #

    For images I either use p class="center" using text-align: center; in the css or... that really old <center> tag.

  4. flashbuddy
    Member
    Posted 5 years ago #

    Note: If your having WordPress fix incorrect xhtml then your <center> tags will be removed!

    There is no way in the visual editor to center an object; an embeded video or whatever. One has to edit the html/css using the methods outlined above.

Topic Closed

This topic has been closed to new replies.

About this Topic