Template:Align
{{{2}}}
This template is used on approximately 120,520 pages. To avoid large-scale disruption and unnecessary server load, any changes to this template should first be tested in its /sandbox or /testcases subpages or in your own user subpage. The tested changes can then be added to this page in one single edit. Please consider discussing any changes on the talk page before implementing them. |
Align Center does not function for the mobile view and mobile applications. Be aware that more than half of the Wikipedia visitors are via mobile. |
- Note: If you trying to align a table column (left, center, or right) use Template:Table alignment.
This is a generic template for handling the horizontal alignment of elements on a page. Use the template like this:
{{align|position|content}}
Examples
{{align|left|'''Hello world!'''}} produces this: Hello world!
|
{{align|right|'''Hello world!'''}} produces this: Hello world!
|
{{align|center|'''Hello world!'''}} produces this: Hello world!
|
{{align|center|'''Hello world!'''|style=color:red}} produces this: Hello world!
|
See also
- {{Center }}, {{Right }}, {{Left }} and {{Justify }}
- {{Center block }}
- {{Image frame }}