Template:Center: Difference between revisions
From Portals of Phereon Wiki
Content added Content deleted
(Created page with "<div class="center">{{{1}}}</div>") |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly><div class="center" style="width:auto; margin-left:auto; margin-right:auto;{{#if: {{{style|}}} | {{{style}}};}}">{{{1}}}</div>{{#if:{{{1|}}}||[[Category:Pages with misused templates]]}}</includeonly><noinclude> |
|||
<div class="center">{{{1}}}</div> |
|||
{{documentation}} |
|||
</noinclude> |
Revision as of 05:52, 19 December 2019
Usage
A simple template to center-align content in tables and other places. Be aware that the center class is applied to this template, which means every element within the template has its left and right margins set to auto. This may harm some templates.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Content | 1 | no description | Content | required |
Custom CSS | style | no description | Unknown | optional |
[view | edit | purge]The above documentation is transcluded fromTemplate:Center/doc.