W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2013

Re: [whatwg] Comments on <dialog>

From: Brian Blakely <anewpage.media@gmail.com>
Date: Sat, 2 Nov 2013 17:22:01 -0400
Message-ID: <CAJGQg4GAPyaOFVR0dpC10Y8iF_Y+Nn+3neNTEG76FLnuwsGR7Q@mail.gmail.com>
To: Ian Hickson <ian@hixie.ch>
Cc: Matt Falkenhagen <falken@chromium.org>, "whatwg@lists.whatwg.org" <whatwg@lists.whatwg.org>
>
> > 4. Why isn't the dialog horizontally centered in the viewport? The spec
> > just mentions vertical centering and 'top'.
>


> The horizontal centering is done via the default CSS. The vertical
> centering can't be done with CSS, hence all the prose about it.


That isn't true anymore.  There are a few very reliable techniques, such as
flexbox or a combination of display: inline-block and vertical-align:
middle.
Received on Saturday, 2 November 2013 21:22:44 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:13 UTC