• Resolved moneyma

    (@moneyma)


    hi all,

    I recently updated my blog’s theme, after updating the theme images in the single post page are getting left aligned always, after a little research in google i added the img.aligncenter, img.alignleft .. etc .. to my css, after updating the css also the images are getting left aligned, when i see the source of the single post page this is what im getting for the img tag <img class="aligncenter size-full wp-image-811" src="https://www.mydomain.com/wp-content/uploads/2009/07/logo-small.gif" alt="logo-small" width="116" height="134" /> , please help me to solve this.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Go through your theme’s style.css file. Image alignment might have been globally set as left-aligned. I had the same problem in one of the themes I used. If you can post the link to the blog post where you spotted the problem, may be I’ll be able to locate the source of the issue.

    S.K

    Hi,

    Try to add this code in style.css file of your theme and have a check:

    img.right {
    float: right;
    margin:10px 0 0 10px;
    }
    img.left {
    float: left;
    margin:0 10px 10px 0;
    }

    Thanks,

    Shane G.

    Thread Starter moneyma

    (@moneyma)

    hey guys thanks for the reply,

    shane your fix worked, thanks for the help, i have beed struggling to solve this issue for a long time ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Image Alignment Problem’ is closed to new replies.