Template:Center/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Nnemo
Notably accessibility
meta>Nnemo
Notably accessibility
Line 17: Line 17:
To do this without a template, simply use the following code:
To do this without a template, simply use the following code:
:<code><nowiki><div class="center" style="width:auto; margin-left:auto; margin-right:auto;"></nowiki></tt>''your text''<tt><nowiki></div></nowiki></code>
:<code><nowiki><div class="center" style="width:auto; margin-left:auto; margin-right:auto;"></nowiki></tt>''your text''<tt><nowiki></div></nowiki></code>
<includeonly><!--  
<includeonly><!--  
++++ PLEASE ADD CATEGORIES AND INTERWIKIS AFTER THIS LINE, THANK YOU. -->
++++ PLEASE ADD CATEGORIES AND INTERWIKIS AFTER THIS LINE, THANK YOU. -->

Revision as of 14:03, 14 July 2012


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

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>