This site is the archived OWASP Foundation Wiki and is no longer accepting Account Requests.
To view the new OWASP Foundation website, please visit https://owasp.org
Difference between revisions of "Template:ColoredBackground"
From OWASP
m (noinclude Usage) |
m (Default: no padding) |
||
Line 12: | Line 12: | ||
color: {{#if: {{{color|}}} | {{{color}}} | black}}; | color: {{#if: {{{color|}}} | {{{color}}} | black}}; | ||
font-size: {{#if: {{{size|}}} | {{{size}}} | 100%}}; | font-size: {{#if: {{{size|}}} | {{{size}}} | 100%}}; | ||
− | padding: {{#if: {{{padding|}}} | {{{padding}}} | | + | padding: {{#if: {{{padding|}}} | {{{padding}}} | none }}; <!---- Top10: 6px ---> |
− | padding-top: {{#if: {{{top|}}} | {{{top}}} | | + | padding-top: {{#if: {{{top|}}} | {{{top}}} | none }}; <!---- Top10: 8px ---> |
font-weight: {{#if: {{{font|}}} | {{{font}}} | bold}}; | font-weight: {{#if: {{{font|}}} | {{{font}}} | bold}}; | ||
border: {{#if: {{{border|}}} | {{{border}}} | none }} {{#if: {{{border-color|}}} | {{{border-color}}} | black }}; <!--- Top10:2013=#207F4A, Top10:2010=#204A7F ---> | border: {{#if: {{{border|}}} | {{{border}}} | none }} {{#if: {{{border-color|}}} | {{{border-color}}} | black }}; <!--- Top10:2013=#207F4A, Top10:2010=#204A7F ---> |
Revision as of 15:41, 7 September 2017
Usage:
Examples
- {{ColoredBackground|text=Simple Example}}Simple Example
- {{ColoredBackground|text=Simple Example|border=3px solid}}Simple Example with a Border
- {{ColoredBackground|text=Simple Example|border=3px solid|border-color=#207F4A}}Simple Example with a green Border