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