Template:Center/doc

Everything About Fiction You Never Wanted to Know.
Revision as of 16:49, 6 February 2014 by Looney Toons (talk | contribs) (copied from http://en.wikipedia.org/wiki/Template:Center/doc)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


This is a simple template to center align content in tables and other places.

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.

Table

Header text
Template:Left2

Center

|| Template:Right

See also