GJK wrote:
>
> I finally understand the mechanics behind horizontal centering using
> CSS1 in Mozilla by applying the appropriate values to margin-left and
> margin-right. Checking through the CSS1 spec, there's no mention of
> vertical centering anywhere. Am I just missing something, or does
> CSS1 completely miss vertical centering? Is there currently any
> valid method for vertical centering in Mozilla?
>
> (No invalid code or frames!)
Thing to remember is that the properties are with respect to the
containing block. And while the initial containing block takes the width
of the viewport, the height expands to fit the content.
So centering vertically will have no effect unless you explicitly make
the containing block larger than the content, e.g. explicitly make it
the height of the viewport, before trying to center an element
vertically.
--
Regards,
Val Sharp - Edinburgh