• 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 https://cssace.com/free-wp-premium-theme-is-here/

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

    Regards, Nakodari

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter ghaus

    (@ghaus)

    Guys please help me here. Please guys.

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

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Picture not getting aligned to center’ is closed to new replies.