Support » Themes and Templates » Photos wont center

Viewing 4 replies - 1 through 4 (of 4 total)
  • fikrirasyid

    (@fikrirasyid)

    Hi adventuresnurse,

    There are lots of photos http://www.adventuresofanurse.com/. Which photo that wont center? Screenshot will help a lot.

    adventuresnurse

    (@adventuresnurse)

    none of them will center. I have them centered in the post and when publish the post they are not centered

    Moderator stephencottontail

    (@stephencottontail)

    What’s happening is that the margin settings on this rule:

    .post_content img {
      max-width:100%;
      margin:10px 0;
      height:auto!important;
    }

    is overriding the margin settings on this rule:

    .aligncenter,div.aligncenter {
      display:block;
      margin-left:auto;
      margin-right:auto;
      padding:10px;
    }

    You could fix this with some custom CSS. If your theme has a built-in custom CSS option, use it; otherwise, get a custom CSS plugin and put:

    .post_content img {
      margin: 10px auto;
    }
    adventuresnurse

    (@adventuresnurse)

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Photos wont center’ is closed to new replies.