[whatwg] Comments on <dialog>

Brian Blakely anewpage.media at gmail.com
Sat Nov 2 14:22:01 PDT 2013


>
> > 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.


More information about the whatwg mailing list