Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Color box: Difference between revisions

Template page
Djavin novienta (talk | contribs)
Moved documentation to Template:Color box/doc.
Change default background-color to transparent. Change default text color to inherit.
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div style="margin:0; background-color:{{{color|#000000}}}; border:1px solid {{{border|#888888}}}; font-style:italic; text-align:left; padding:1em 1em 1em 1em; overflow:hidden; color:{{{text|#ffffff}}}; {{#if:{{{width}}}|width:{{{width}}}|}}; margin-right:auto; margin-left:auto">{{{1|Example text}}}</div><noinclude>
<div style="
margin: 0.2em auto;
border: 2px solid {{{border|#888888}}};
padding: 0.8em;
width: {{{width|auto}}};
overflow: hidden; /* To stop the div from overlapping floating elements. */
background-color: {{{color|transparent}}};
text-align: {{{align|left}}};
color: {{{text|inherit}}};
{{#ifeq: {{{italics}}} | no
| font-style: normal;
| font-style: italic;
}}
">{{{1|Example text}}}</div><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>