Template:Center

From KSI Wiki
Revision as of 23:14, 12 March 2019 by Koda (talk | contribs) (Created page with "<includeonly><div class="center" style="width:auto; margin-left:auto; margin-right:auto">{{{1}}}</div></includeonly><noinclude> A simple template to center-align content in ta...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

A simple template to center-align content in tables and other places.

Example[edit source | hide | hide all]

{{Center|'''Hello world!'''}} produces this:
Hello world!

To do this without a template, simply use the following code:

<div class="center" style="width:auto; margin-left:auto; margin-right:auto;">...</div>