Fix Image Floating in Morning After Theme

Tags:

I put images in the post body in the middle of text as a separate block instead of letting texts floating to the left(or right) of the image.

However, the default setting of The Morning After is to let image appears to the left or right of text always; which is a headache for some people. One option to solve that issue is to use caption-left/right/full style css. But if you just let user image appear as a separate paragraph like me, see: wp-content/themes/tma/lib/condensed.css. In the code, search for p img and fix it like this:

p img{float:left;margin:1.5em 1.5em 1.5em 0;padding:0;display:block;}

And fix wp-content/themes/tma/style.css:

#post_content img { float:none; display:block; clear:both; }:

I’m no CSS expert, but couldn’t find any article discussing this mod., so I’m posting here. Leave a comment here, if you have trouble; or better fix.

Comments

2 responses to “Fix Image Floating in Morning After Theme”

  1. Carl McDade Avatar

    Thanks this was driving nuts!

  2. MKSeo Avatar
    MKSeo

    Glad this is helpful.

Leave a Reply

Your email address will not be published. Required fields are marked *