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

horizontal centering of<div> in browser window

P: n/a
I have a fixed size <div> I would like to display in the center of a
browser window. To get the horizontal alignment is no problem using
'margin-left: auto' and 'margin-right: auto' but I cannot figure out
how to get it to centet vertically. Any ideas?

Ron Bott
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On 4 Nov 2003 07:46:08 -0800, ro*****@yahoo.com (Ron Bott) wrote:
I have a fixed size <div> I would like to display in the center of a
browser window. To get the horizontal alignment is no problem using
'margin-left: auto' and 'margin-right: auto' but I cannot figure out
how to get it to centet vertically. Any ideas?

Ron Bott


http://www.wpdfd.com/editorial/thebox/deadcentre1.html
http://www.wpdfd.com/editorial/thebox/deadcentre3.html
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.