[resolved] CSS image centering issue (2 posts)

  1. Nile Flores
    Yoast Support
    Posted 5 years ago #

    I keep missing something when putting in the images for WP to be able to center, alignleft and alignright.

    CSS to site is - http://kittybradshaw.com/wp-content/themes/kitty2011/style.css

    Site is - http://kittybradshaw.com

    The images are not doing what is needed... for example, the shoe image in the following post link is not centering as it should -

  2. Michael
    Forum Moderator
    Posted 5 years ago #

    the margins in this style in style.css of your theme:

    #contentarchive .postarea img {
    	display: block;
    	background: #EEEEEE;
    	padding: 3px;
    	margin: 0px 0px 10px 0px;
    	border: 1px solid #DDDDDD;

    are overwriting the margins in the img.aligncenter style.

    remove this line from the above:

    margin: 0px 0px 10px 0px;

Topic Closed

This topic has been closed to new replies.

About this Topic