Support » Themes and Templates » center images on attachment pages

  • Ok this one is so simple it is disgusting – for some reason I can use the property float: right; and the image will go to the right, float: left; will make it go to the left. all I want to do is center the thing – I tried float: middle; and float: center; – neither of these will put it in the center – ALL I WANT TO DO IS CENTER THE DARN IMAGE! should be really easy and I can’t figure out why it won’t work

    .image-attachment div.attachment img {
    padding-top: 50px;
    display: block;
    height: auto;
    margin: 0 auto;
    max-width: 100%;
    float: center;

    please someone help me before i pull my hair out! THANKS!

Viewing 14 replies - 1 through 14 (of 14 total)
Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘center images on attachment pages’ is closed to new replies.