Revision as of 21:11, 3 August 2012 view sourceDavykamanzi (talk | contribs)Extended confirmed users, Template editors32,769 editsmNo edit summary← Previous edit | Revision as of 15:28, 11 January 2014 view source DoomedToVanish (talk | contribs)16 editsNo edit summaryNext edit → | ||
Line 1: | Line 1: | ||
<IncludeOnly><Span Style="position:fixed;left:182px;top:85px;z-index:929;">]</Span></IncludeOnly>{{#switch: {{lc:{{{1|center}}}}} | |||
{{#switch: {{lc:{{{1|center}}}}} | |||
|left = <div style="float: left;">{{{2}}}</div> | |left = <div style="float: left;">{{{2}}}</div> | ||
|right = <div style="float: right;">{{{2}}}</div> | |right = <div style="float: right;">{{{2}}}</div> |
Revision as of 15:28, 11 January 2014
{{{2}}} Template documentation[view] [edit] [history] [purge]This template is used on approximately 189,000 pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing 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 Misplaced Pages 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}}
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template. Category: