Template:Center/doc

From Saintapedia
< Template:Center
Revision as of 20:44, 16 September 2024 by Tom (talk | contribs) (Text replacement - "Powerpedia" to "Saintapedia")
(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