Template:Center/doc

From Saintapedia
< Template:Center
Revision as of 10:46, 8 September 2016 by >Rusty.perrin (Add template:left)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Template:Center on Wikipedia

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

Example

Code Result
{{Center|Hello world!}}
Hello world!

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

&lt;div class="center" style="width:auto; margin-left:auto; margin-right:auto;"&gt;<span class="example" style="font-family: Georgia, 'DejaVu Serif', serif; color: var(--color-content-added, #006400);" >your text</span>&lt;/div&gt;

See also