By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,949 Members | 921 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,949 IT Pros & Developers. It's quick & easy.

Vertical Centering

P: 1
Hi Everybody,

This is my first post so please be gentle with me.
I have a client that wants his website to be centered vertically as well as horizontally. I have seen conflicting methods of doing this but have been told to steer clear of this because of lack of all browser support. Is this true? If not could anyone please tell me a simple solution.

Thanks in advance.

Wickerman
Oct 2 '06 #1
Share this Question
Share on Google+
1 Reply


100+
P: 143
Hi Everybody,

This is my first post so please be gentle with me.
I have a client that wants his website to be centered vertically as well as horizontally. I have seen conflicting methods of doing this but have been told to steer clear of this because of lack of all browser support. Is this true? If not could anyone please tell me a simple solution.

Thanks in advance.

Wickerman
The problem is that there's no real CSS / HTML strict solution to this (as far as I can remember). You could probably cheat and place the entire page div inside a table cell and center the contents of the cell. It's bad practice, but it should work how you want.

The vertical-align css property only works on table cells and other inline elements.
Oct 2 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.