Template:Align/doc: Difference between revisions

From Project Basis
Jump to navigation Jump to search
Made a minor correction.
 
m 1 revision imported
 
(No difference)

Latest revision as of 02:11, 20 July 2026

Note: If you trying to align a table column (left, center, or right) use Template:Table alignment.

This is a generic template for handling the horizontal alignment of elements on a page. Use the template like this:

{{Align|position|content}}

Examples

{{Align|left|'''Hello world!'''}} produces this:
Hello world!
{{Align|right|'''Hello world!'''}} produces this:
Hello world!
{{Align|center|'''Hello world!'''}} produces this:
Hello world!
{{Align|center|'''Hello world!'''|style=color:red}} produces this:
Hello world!

See also