W3C home > Mailing lists > Public > www-style@w3.org > February 2017

[css-align] Centering in the viewport

From: Jan Tosovsky <jan.tosovsky.cz@gmail.com>
Date: Fri, 17 Feb 2017 20:51:13 +0100
Message-ID: <58a75430.09b31c0a.faee5.0387@mx.google.com>
To: <www-style@w3.org>
Dear All,

when investigating modern ways of centering the viewport I found these
examples:
https://www.w3.org/Style/Examples/007/center

Especially the last one utilizing 'transform' property looks promising:
https://www.w3.org/Style/Examples/007/center-example2

However, in all major browsers, when the window height is small so
scrollbars are activated, the top of the box is cropped and it cannot be
scrolled any more.

Is such rendering incorrect or there is something wrong in the style
definition?

Thanks,

Jan
Received on Friday, 17 February 2017 19:58:01 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:09:06 UTC