Template:Center/doc: Difference between revisions
ArrowHead294 (talk | contribs) mNo edit summary |
ArrowHead294 (talk | contribs) mNo edit summary |
||
Line 3: | Line 3: | ||
<pre><div style="text-align: center;"> | <pre><div style="text-align: center;"> | ||
<div style="margin: auto auto auto auto;"> | <div style="width: auto; margin: auto auto auto auto;"> | ||
... | ... | ||
</div> | </div> | ||
Line 13: | Line 13: | ||
; <code><nowiki>{{{1}}}</nowiki></code> '''(required)''' | ; <code><nowiki>{{{1}}}</nowiki></code> '''(required)''' | ||
: One unnamed parameter, consisting of the text to be centered. | : One unnamed parameter, consisting of the text to be centered. | ||
; <code>width</code> '''(optional)''' | |||
: Pass in the desired width; the default value is <code>auto</code>. | |||
; <code>top</code> '''(optional)''' | ; <code>top</code> '''(optional)''' |