• I am developing a new theme for a client of mine. With their previous theme, they aligned the first main picture within the text of each post, either to the left or to the right. With my theme, the picture stays at the top and the text starts underneath it, instead of being embedded into the text. Do you know why this is happening and if there is an easy way to fix it, besides going into every page and manually aligning it again?

Viewing 2 replies - 1 through 2 (of 2 total)
  • do you have the typical ‘image alignment styles’ in style.css of your new theme –
    for instance the most basic ones:

    .aligncenter {
    	display: block;
    	margin-left: auto;
    	margin-right: auto;
    	}
    .alignright {
    	float: right; margin-left: 10px;
    	}
    
    .alignleft {
    	float: left; margin-right: 10px;
    	}

    and are the images inserted into the post with one of the alignment buttons ticked?

    a link to the site with the issue is the best way to get bettter help.

    Thread Starter isign4jc

    (@isign4jc)

    Thanks! After adding some basic css image class styling like the one you posted it worked!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Image alignment with new theme’ is closed to new replies.