Hi,
http://www.jakpsatweb.cz/css/css-vertical-center-solution.html
please look how to make vertical center of box with unknown height.
Yuhu
Vertical Centering in CSS Solution
Hi Yuhu
Haven't had much chance to look into/have a go of your code yet, but looks decent.
I'd suggest posting this in the Knowledge Base forum and perhaps the Common Questions forum on here, as so you can get more exposure. Don't think many people look at the Geek News forum!
Vertical Centering in CSS Solution
That (without the hacks) is exactly how it could be done were a certain browser a bit more conformant. Due to the hacks and the non-semantic markup, this method would likely create maintenance issues. As seldom as this would be used, I doubt I would remember why I did what, and if someone else were to be the maintainer, would my comments be enough?
I think a single celled table is the more appropriate choice. There are no browser shortcomings to overcome and coders would fully grok the markup. I'm not a fan of the AP centering method due to a number of gotchas, though not likely a problem here.
For practical reasons, these are not as glamorous, but, IMO, are the better methods;
http://garyblue.port5.com/webdev/vcenter.html
http://garyblue.port5.com/webdev/vcenter2.html
cheers,
gary
Vertical Centering in CSS Solution
Thank you Gary and Triumph; I wonder why I was working on that late last night. I'm glad you pointed ot those shortcomings before I tried to use it anywhere "out there" Brrrrr!