Template:Center/doc: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Frietjes |
meta>Frietjes No edit summary |
||
Line 15: | Line 15: | ||
=== Table === | === Table === | ||
Using {{tld|left2}} / {{tld|center}} / {{tld|right}} | |||
{| class="wikitable" | {| class="wikitable" | ||
!colspan="3" style="width:300px"| Header text | !colspan="3" style="width:300px"| Header text | ||
|- | |- | ||
| {{Left2|Left2}} || {{Center|Center}} || {{Right|Right}} | | {{Left2|Left2}} || {{Center|Center}} || {{Right|Right}} | ||
|} | |||
Using {{tld|align|left}} / {{tld|align|center}} / {{tld|align|right}} | |||
{| class="wikitable" | |||
!colspan="3" style="width:300px"| Header text | |||
|- | |||
| {{align|left|Left}} || {{align|center|Center}} || {{align|right|Right}} | |||
|} | |} | ||
== See also == | == See also == | ||
*{{tl|Align}} | |||
*{{tl|Left}} | *{{tl|Left}} | ||
*{{tl|Left2}} | *{{tl|Left2}} |
Revision as of 22:44, 5 March 2015
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. |
A simple template to center-align content in tables and other places.
Example
Markup | Renders as |
---|---|
{{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;">...</div>
To center a table, see Help:TABLECENTER.
Table
Using {{left2}}
/ {{center}}
/ {{right}}
Header text | ||
---|---|---|
Template:Left2 | Center |
Right |
Using {{align|left}}
/ {{align|center}}
/ {{align|right}}
Header text | ||
---|---|---|
Left |
Center |
Right
|
See also