Template:Center/doc: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Frietjes No edit summary |
meta>Plastikspork Now merged |
||
Line 15: | Line 15: | ||
=== Table === | === Table === | ||
Using {{tld| | Using {{tld|left}} / {{tld|center}} / {{tld|right}} | ||
{| class="wikitable" | {| class="wikitable" | ||
!colspan="3" style="width:300px"| Header text | !colspan="3" style="width:300px"| Header text | ||
|- | |- | ||
| {{ | | {{Left|Left}} || {{Center|Center}} || {{Right|Right}} | ||
|} | |} | ||
Using {{tld|align|left}} / {{tld|align|center}} / {{tld|align|right}} | Using {{tld|align|left}} / {{tld|align|center}} / {{tld|align|right}} | ||
Line 31: | Line 31: | ||
*{{tl|Align}} | *{{tl|Align}} | ||
*{{tl|Left}} | *{{tl|Left}} | ||
*{{tl|Right}} | *{{tl|Right}} | ||
Revision as of 13:37, 17 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 {{left}}
/ {{center}}
/ {{right}}
Header text | ||
---|---|---|
Left |
Center |
Right |
Using {{align|left}}
/ {{align|center}}
/ {{align|right}}
Header text | ||
---|---|---|
Left |
Center |
Right
|
See also