6 Replies - 752 Views - Last Post: 07 February 2013 - 03:16 PM

Positioning of Images on a Website Question

Posted 06 February 2013 - 07:56 PM

I am making a website and I had a quick question... It is probably considered a 'rookie question', I have a feeling it is something really easy. I want to center an object without using <center> tags, but when I do that, it centers it based off of the top left corner like usual. How can I change the positioning to the center of the image as opposed to the top left corner?

Re: Positioning of Images on a Website Question

Posted 07 February 2013 - 10:59 AM

mgaines2, on 06 February 2013 - 07:56 PM, said:

I am making a website and I had a quick question... It is probably considered a 'rookie question', I have a feeling it is something really easy. I want to center an object without using <center> tags, but when I do that, it centers it based off of the top left corner like usual. How can I change the positioning to the center of the image as opposed to the top left corner?

Set the margins (at least left and right at the minimum) to auto. Should do it.