Support » Fixing WordPress » Center an Image?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Try adding this to the end of style.css:

    div.home > p > a > img {
       position: relative;
       left: -12%;

    Hmm. This did push it to the left, but its not centered. I can try changing the left justification percentage.

    But how can I get the absolute center?

    The image was originally at absolute center – the menu was not.

    However, the image is pushed right by the logo image, so you have to compensate by moving it left.

    The only way I know to have it at absolute center again is to restructure the divs.

    Oh, I see. It’s looking with with -8%. Thank you very much! Not sure if this will change with different resolutions though.

    Since the offset is a percent, it should be OK.

    Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Center an Image?’ is closed to new replies.