Gregory's Blog

Popular Blogs

Read More...

All Blogs

Using top: auto will not work when vertically aligning text within multiple block level elements.

Using top: auto will not work when vertically aligning text within multiple block level elements.


Using top: auto, margin: auto, margin-top: -50%, etc, will not work when vertically aligning text within multiple block level elements. The problem with these css declarations in block level elements is that the values would be calculated as zero when they are calculated relative to the width of outer blocks.
Read More...