Vorlage:Center/doc: Unterschied zwischen den Versionen

CamNet - das Wiki
(Die Seite wurde neu angelegt: „{{Documentation subpage}} <!--PLEASE ADD CATEGORIES AT THE END OF THIS PAGE.---> A simple template to center-align content in tables and other places. == Exam…“)
 
imported>Oetterer
(Die Seite wurde neu angelegt: „{{Documentation subpage}} <!--PLEASE ADD CATEGORIES AT THE END OF THIS PAGE.---> A simple template to center-align content in tables and other places. == Exam…“)
 
(kein Unterschied)

Aktuelle Version vom 16. April 2022, 22:50 Uhr

A simple template to center-align content in tables and other places.

Example

Markup Renders as
{{Center|Hello world!}}
Hello world!

To do this without a template, simply use the following code:

<div class="center" style="width:auto; margin-left:auto; margin-right:auto;">your text</div>

Table

Header text
{{align|left|text}}
Center
{{align|right|text}}

See also