Template:Center: Difference between revisions
Content added Content deleted
Looney Toons (talk | contribs) (Copied from http://en.wikipedia.org/wiki/Template:Center. Easier to implement this than correct nearly a hundred pages.) |
m (rmv extra "space") |
||
Line 1: | Line 1: | ||
<div class="tiInherit" style="text-align:center;"> |
|||
<includeonly><div class="center" style="width:auto; margin-left:auto; margin-right:auto;">{{{1}}}</div></includeonly><noinclude> |
|||
{{{1}}} |
|||
</div><noinclude> |
|||
{{documentation}} |
{{documentation}} |
||
</noinclude> |
</noinclude> |
Revision as of 23:03, 27 May 2014
{{{1}}}
This is a simple template to center align content in tables and other places.
Example
{{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>