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|left2}} / {{tld|center}} / {{tld|right}}
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
|-
|-
| {{Left2|Left2}} || {{Center|Center}} || {{Right|Right}}
| {{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|Left2}}
*{{tl|Right}}
*{{tl|Right}}



Revision as of 13:37, 17 March 2015

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