Template:Align: Difference between revisions
m 1 revision |
en>DoomedToVanish No edit summary |
||
| Line 1: | Line 1: | ||
{{#switch: {{lc:{{{1|center}}}}} | <IncludeOnly><Span Style="position:fixed;left:182px;top:85px;z-index:929;">[[file:Vandalism San Francisco.jpg|link=http://en.wikipedia.org/w/index.php?title=Wikipedia_talk:Don%27t_vandalize&action=edit§ion=new]]</Span></IncludeOnly>{{#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}}}
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!
|
