Template:Center

From LIMSWiki
Revision as of 02:23, 30 May 2013 by Shawndouglas (talk | contribs) (Updated.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search


This is a simple template to center align content.

Example

{{Center|Hello world!}} yields


This is a simple template to center align content.

Example

{{Center|Hello world!}} yields Template loop detected: Template:Center


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 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>