Difference between revisions of "Template:Center"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with "<includeonly>style="text-align:center;"</includeonly><noinclude> Template for center style, especially useful for cells within tables: {| class="wikitable" | width="100%" {{ce...")
 
Line 1: Line 1:
 
<includeonly>style="text-align:center;"</includeonly><noinclude>
 
<includeonly>style="text-align:center;"</includeonly><noinclude>
 
Template for center style, especially useful for cells within tables:
 
Template for center style, especially useful for cells within tables:
{| class="wikitable"
+
{| width="100%" class="wikitable"
| width="100%" {{center}} | This text is centered.
+
| {{center}} | This text is centered within this cell.
 +
| This text is not centered within this cell. Default to align left.
 
|-
 
|-
| This text is not centered. Default to align left.
+
| colspan="2" | This text is also not centered.
 
|}
 
|}
 
</noinclude>
 
</noinclude>

Revision as of 08:40, 3 June 2012

Template for center style, especially useful for cells within tables:

This text is centered within this cell. This text is not centered within this cell. Default to align left.
This text is also not centered.