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

centering vertically

P: n/a
Hi!

Is it possible to center a div vertically without knowing the exact
height of the div?

Timo
Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
LJK
As far as I know -

div#whatnot{
margin-left:auto; margin-right:auto;
}

Hope this helps,
El
Jul 20 '05 #2

P: n/a
Timo Nentwig wrote:
Hi!

Is it possible to center a div vertically without knowing the exact
height of the div?


Yes. Which div?

http://www.student.oulu.fi/~laurirai/www/css/middle/

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
I'm looking for work | Etsin työtä
Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.