Replace HTML5 obsolete center element with CSS.

Fix #6901. Would generate invalid HTML5.
Merge pull request #7169 from cirosantilli/remove-center-elem

Replace HTML5 obsolete center element with CSS.