Template:Leftblock
Jump to navigation
Jump to search
This template creates a block-level element (<div>...</div>) that forces left-alignment on the text within it. It is useful for left-aligning long captions and similar elements that are styled with centred text by default.
Usage
{{Leftblock|This text is left-aligned.}}
This text is centred.
This text is left-aligned.
This text is centred.
In an infobox
| 200px Lorem ipsum dolor sit amet, eos tota meis forensibus in, quo cu nisl sumo alterum, vel novum putent mollis eu. Qui eu verear prompta, agam facilis eos ex, cu sed oblique scaevola mediocrem. |
| caption = {{Leftblock|Lorem ipsum dolor sit amet, eos tota meis forensibus in, quo cu nisl sumo alterum, vel novum putent mollis eu. Qui eu verear prompta, agam facilis eos ex, cu sed oblique scaevola mediocrem.}}
See also
- Template:Left - for left-aligning table cells
- Template:Align - for a floating element that may be left- or right-aligned
| The above documentation is transcluded from Template:Leftblock/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |