Template:Center/doc: Difference between revisions
ArrowHead294 (talk | contribs) mNo edit summary |
ArrowHead294 (talk | contribs) m Restore revision 171368 by ArrowHead294 (talk) |
||
Line 1: | Line 1: | ||
{{dochead}}{{wikipedia}} | {{dochead}}{{wikipedia}} | ||
The <code><nowiki><center></nowiki></code> tag in {{w|HTML}} is now deprecated, and there is no | The <code><nowiki><center></nowiki></code> tag in {{w|HTML}} is now deprecated, and there is no easy replacement for it. This template is designed to replicate the tag's functionality using nested <code><nowiki><div></nowiki></code> elements as a workaround: {{clear}} | ||
<pre><div style="text-align: center; width: auto; margin: auto auto auto auto;"> | <pre><div style="text-align: center;"> | ||
... | <div style="width: auto; margin: auto auto auto auto;"> | ||
... | |||
</div> | |||
</div></pre> | </div></pre> | ||