Template:Center/doc: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>16@r +example |
meta>Unused0029 add how to do it without template <div> |
||
Line 10: | Line 10: | ||
|} | |} | ||
To do this without a template, simply use the following code: | |||
:<tt><nowiki><div align="center"></nowiki></tt>''your text''<tt><nowiki></div></nowiki></tt> | |||
<includeonly><!-- | <includeonly><!-- | ||
++++ PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, THANK YOU. --> | ++++ PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, THANK YOU. --> | ||
[[Category:Formatting templates|{{PAGENAME}}]] | [[Category:Formatting templates|{{PAGENAME}}]] | ||
</includeonly> | </includeonly> |
Revision as of 23:16, 19 February 2008
This is a documentation subpage for Template:Center. It may contain usage information, categories and other content that is not part of the original template page. |
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 align="center">your text</div>