[thelist] Center an image in the center of a page Gecko

Gunlaug Sørtun gunlaugs at c2i.net
Wed Feb 9 01:16:06 CST 2005


Rich Points wrote:
> Howdy, I'm primarily a CSS designer and almost never use tables but I
> am for this because CSS does not support vertical alignment.  I'm
> trying to center an image in the center of a page.  I have it working
> in IE but I'm having trouble getting it to do so in Mozilla.   Here
> is the page http://philbrittin.com
> 
> Anyone know how to do this?

Use 'position: fixed' for Moz/FF/Op/Saf.
Position it 50% 50%, and pull top and left margins with a negative value
half the height/width of the image.

Leave IE/win with the solution you are using now.

regards
	Georg


More information about the thelist mailing list