On 9/14/10 5:09 PM, Thierry Koblentz wrote:
whizz-bang-blammo align centered vertically.


Brilliant!!! But sadly not.

If there is no height set for your DIV, then line-height should be
enough If there is a height then the line-height must match that
value


I'm a bit late and maybe wet behind the ears, but would making the
container "display: table;" and the UL "display: table-cell;" work?
Perhaps with a spot of JavaScript to turn them into an HTML table for
poor old IE 7 and older?

You may need to add "vertical-align: middle;" as well...

Cordially,
David
--

______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to