Sent by Jeff Minard on 21 June 2004 19:07
This is one of those things, like min-height: 100%, that just doesn't
seem to be in CSS yet.
I think there is some kinda of hack for gecko browsers that you can say
something like "display: table-cell" and vertical-align will work as
expected, but that's only going to work in mozilla(s) (if it works at all.)
I recently wanted to center images vertically and horizontally in a box
for [1] a gallery script I maintain and I found the only solution was to
have php do some calculations and throw an inline style onto the images
to force them to margin-top enough to center. :-\
Best of luck,
Jeff Minard
[1] - http://www.creatimation.net/view/
Daniel Klein wrote:
> I want to do something incredibly simple: Align the text inside a div
> vertically centered. Here's the stuff I've tried:
>
> http://www.ubermutant.de/eyes/panelling.html
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/