Template:Ruled box
Appearance
{{{1}}}
This template uses block elements, e.g. This template applies the class(es) See H:DIVSPAN for details. |
This template uses TemplateStyles: |
Usage
[edit]A simple box with rules top and bottom, centred in the page.
- 1, content: whatever goes in the box
- position: alignment of the box
- Options: left, center, right; default: center
- compact: whether the box should take only the width needed (if true) or use the full page width (if false)
- Options: true, false; default: true
- class: additional CSS classes
Examples
[edit]Example
{{ruled box | {{lorem ipsum}} }}
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
See also
[edit]- {{Border}}: fully-customizable box
- {{Ruled box}}: for boxes with borders only on top and bottom
- {{Centered Box}}: centered box, width to fit text
- {{Frame}}: full-width frame around content