Replace HTML5 obsolete center element with CSS.

Fix #6901. Would generate invalid HTML5.