Template:Center/doc

From FamilySearch Wiki
< Template:Center
Revision as of 09:54, 30 October 2010 by Cottrells (talk | contribs) (Created page with '{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. --> This is a simple template to align stuff to the center. To use this, place <no…')

(diff) ← Older revision | Approved revision (diff) | Latest revision (diff) | Newer revision → (diff)

This is a simple template to align stuff to the center. To use this, place {{Center|<text>}} on the desired page, replacing <text> with the desired content.

Example[edit source]

Code {{Center|Hello world!}}
Result
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>