This would have to get recomputed on every window resize.  There should be some CSS setup that will magically center it without any JS computations needed (either auto margins, or `display: table-cell`, or flex box layout...)