Template:Align: Difference between revisions
Jump to navigation
Jump to search
Randombell (talk | contribs) Created page with "{{safesubst<noinclude/>:#switch: {{safesubst<noinclude/>:lc:{{{1|center}}}}} |left = <div style="float: left;{{safesubst<noinclude/>:#if: {{{style|}}} | {{{style}}};}}">{{{2}}}</div> |right = <div style="float: right;{{safesubst<noinclude/>:#if: {{{style|}}} | {{{style}}};}}">{{{2}}}</div> |center = {{safesubst<noinclude/>:center|{{{2}}}|style={{{style|}}} }} |#default = Error in Template:Align: the alignment setting "{{{1}}}" is invalid. }}<noinclude> {{documentatio..." |
(No difference)
|
Latest revision as of 12:05, 19 August 2025
{{{2}}}
![]() | 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}}