Click to See Complete Forum and Search --> : Vertical Alignment - PLEASE HELP!!!


Master00
05-04-2010, 11:00 PM
Ok, this has been driving me crazy. I am trying to vertically align a website using CSS. I've gone through about a dozen different ways of doing this and I can't seem to find any way to make this work in IE8.

Here is an example of the code that I am using which works fine in FireFox but doesnt work properly in IE8.

http://www.24sevenphotography.com/test.html

If you load it in Firefox you can see the way that it is supposed to look / work. If someone could please help me get it to look the same way in IE I would greatly appreciate it. Thanks

JunkMale
05-06-2010, 12:20 AM
It says "Page Not Found"

does

body { vertical-align:centre; }

work?

justinbarneskin
05-06-2010, 12:40 AM
You can always resort to a 100%height container table with a single cell.

Master00
05-07-2010, 03:35 PM
I was on some time constraints so I decided the best bet was to just rely on javascript. I think it works well because if the user doesnt have javascript enabled it will still center the site horizontally, just not vertically. I haven't tested it out on many browsers so if anyone notices any glitches please let me know. You can check out the site here....

http://www.24sevenphotography.com