Template:Center

From GC-Forever Wiki
Revision as of 23:50, 3 May 2013 by Cybertronic (talk | contribs) (Created page with "<includeonly><div class="center" style="width:auto; margin-left:auto; margin-right:auto;">{{{1}}}</div></includeonly><noinclude> {{documentation}} </noinclude>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
[view] [edit] [history] [purge] Documentation icon Template documentation

This is a simple template to center align content.

Example

Markup Renders as
{{Center|Hello world!}}
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;">your text</div>

To center a table, see Help:TABLECENTER.