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

Maximillian Schwanekamp lists at neptunewebworks.com
Wed Feb 9 00:50:33 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

Your image is really just a background image, isn't it? (Suggested by 
the fact that the filename has "background" in it).  Why not style it as 
such, i.e. set something like
body {
   background: url(images/photo/philbrittin_background.jpg) center 
center no-repeat;
}
Maybe I'm missing something?


-- 
Maximillian Von Schwanekamp
http://www.neptunewebworks.com/



More information about the thelist mailing list