More actions
m Set font-style normal when parameter italics is no. Needed for nested boxes where the containing element has font-style italics, font-style inherits. |
Add CSS to stop from overlapping floats. |
||
| Line 1: | Line 1: | ||
<div style=" | <div style=" | ||
margin: 0.2em auto; | margin: 0.2em auto; | ||
border: 2px solid {{{border|#888888}}}; | border: 2px solid {{{border|#888888}}}; | ||
padding: 0.8em; | padding: 0.8em; | ||
width: {{{width|auto}}}; | width: {{{width|auto}}}; | ||
background-color: {{{color|black}}}; | overflow: hidden; /* To stop the div from overlapping floating elements. */ | ||
text-align: {{{align|left}}}; | background-color: {{{color|black}}}; | ||
color: {{{text|white}}}; | text-align: {{{align|left}}}; | ||
color: {{{text|white}}}; | |||
{{#ifeq: {{{italics}}} | no | {{#ifeq: {{{italics}}} | no | ||
| font-style: normal; | | font-style: normal; | ||