Template:Box-shadow border/doc
Sarna News
- Bad 'Mechs - Thresher Mk II
- HEXTECH Wave 9 Review - Winding Rivers, Tall Walls, and Underground Tunnels
- Hired Steel and Making MechWarrior 5: Clans Cinematics with Constantin & Bernhard of TMC
- Your BattleTech News Round-Up For December, 2024
- Community Outreach - Caterwauling On CamoSpecs With Matt "00Dawg" Frederiksen
- Read more →
This is a documentation subpage for Template:Box-shadow border. It may contain usage information, categories and other content that is not part of the original template page. |
{{Box-shadow border}} provides style declarations to show a visual line, similar to a border, at one or more sides of an element.
This template is useful where an element should not have a border, or uses a border already. Navboxes, in particular, use borders to give the appearance of spacing between elements.
This template should complement text, instead of taking the place of text. Color blind and visually impaired users may also only perceive the text.
Wide borders may overlap the text inside the navbox elements since the borders are drawn on the inside of the element. To avoid this overlap, increase the cell padding using value greater than the border width. For a title navbox, the default title padding is '0.25em 1em', so a "left right" border of size '2em' should be offset with between '2.25em' and '3em' padding on the left and right depending on the desired appearance.
Contents
Examples[edit]
All (default)[edit]
Left[edit]
Right[edit]
Top[edit]
Bottom[edit]
Top and bottom[edit]
Left and right[edit]
All with two colors[edit]
Top and bottom with two colors[edit]
Left and right with two colors[edit]
Wide left and right with offset padding[edit]
Wide left and right with minimal offset padding[edit]
See also[edit]
- {{Navbox}}