467,163 Members | 1,002 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,163 developers. It's quick & easy.

centering vertically

Hi!

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

Timo
Jul 20 '05 #1
  • viewed: 1609
Share:
2 Replies
LJK
As far as I know -

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

Hope this helps,
El
Jul 20 '05 #2
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.

Similar topics

19 posts views Thread by George Ziniewicz | last post: by
3 posts views Thread by CMAR | last post: by
7 posts views Thread by Aaron | last post: by
1 post views Thread by Kenneth | last post: by
4 posts views Thread by Daniel Kaplan | last post: by
3 posts views Thread by Robert Latest | last post: by
2 posts views Thread by anonymous | last post: by
6 posts views Thread by Jerry Camel | last post: by
3 posts views Thread by John Pote | last post: by
5 posts views Thread by Markus Ernst | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.