Previous Message
Next Message

height and margin: auto 0

Sent by Paul Novitski on 28 April 2010 20:08


At 4/28/2010 11:06 AM, Climis, Tim wrote:
> > Would the block center vertically if the containing block had a declared
> > height, or does that not matter either?
>
>It would not.
>
> > Thoughts?
>
>If you're in a position be able to specify height on both the block 
>and it's container, then this is pretty easy to accomplish.  If you 
>can't do that, then the only ways to do it are resorting to tables 
>or javascript.


Don't give up yet!

There are the table-mimicking display properties
http://www.w3.org/TR/CSS21/visuren.html#display-prop

Also don't forget our beautifully recreated wiki:
http://css-discuss.incutio.com/wiki/Centering_Block_Element#Vertical_Centering

and I also had this one bookmarked:
http://www.jakpsatweb.cz/css/css-vertical-center-solution.html

Regards,

Paul
__________________________

Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com 

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
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/
Previous Message
Next Message

Possibly related: