ਸਮੱਗਰੀ 'ਤੇ ਜਾਓ

ਫਰਮਾ:Center

Wikibooks ਤੋਂ
usage syntax
{{center|your text goes here}}

Purpose

This utility template centers text inside an HTML <div style=...> container and internal <span style=... >...</span>> wrapper with 0.75em padding, and a margin of 1em.

  • This can be desirable in many cases as it sets off the text nicely, but assumes it is the last (only) text on a line--which can adversely affect wikimarkup using '||' seperators in tables.
  • It can also have undesirable 'enlarging' effects, again, especially in tables.

  See also the alternative: {{Cen}} - which wraps the text in wikimarkup <center>> tags, making tighter presentation in tables, and not forcing unwanted newlines.