Forums

[resolved] centre images in post (9 posts)

  1. skinflint
    Member
    Posted 1 year ago #

    how do i centre the images in my posts ?

    basically when i upload the image i click the CENTRE option however when the post goes live on my blog the image to appear to the left.
    is there a code i can input somewhere to ensure the image is centred ?

    http://www.wotyougot.com/

  2. sharecommons
    Member
    Posted 1 year ago #

    Did you customize the CSS of your theme?

  3. skinflint
    Member
    Posted 1 year ago #

    yes in parts but i don't think i touched anything about the image

  4. sharecommons
    Member
    Posted 1 year ago #

    Then I advise you to add this in your css file:

    .entry img {
    text-align: center;
    }

    Don't have to make any other changes anywhere. Please try it and lets see if that helps :)

  5. skinflint
    Member
    Posted 1 year ago #

    ok - in which css file though ?

  6. skinflint
    Member
    Posted 1 year ago #

    I put it into my stylesheet.css and it didnt work

  7. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Try adding:

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

    to the bottom of style.css.

  8. skinflint
    Member
    Posted 1 year ago #

    yep that worked Esmi !

    once again thanxx for your help you star !!

  9. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    You're welcome.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.