Difference between revisions of "Template:Superimpose"
(dupe pp) |
(add optional align parameter) |
||
Line 1: | Line 1: | ||
− | <div style="position: relative; width: {{{base_width}}};">{{ | + | <div style="position: relative; width: {{{base_width}}};{{#switch:{{{align|}}}|left=float:left; clear:left;|right=float:right; clear:right;|center=margin-left:auto; margin-right:auto;|#default=}}">{{ |
#if: {{{x|}}} | #if: {{{x|}}} | ||
| <div style="position: absolute; left: {{{x|0}}}px; top: {{{y|0}}}px; padding: 0;"><!-- | | <div style="position: absolute; left: {{{x|0}}}px; top: {{{y|0}}}px; padding: 0;"><!-- |