More actions
m Apply CSS shorthand. Remove overflow: only functions when a fixed height: is used. Sort CSS properties by the CSS Box model from outer to inner. |
Add CSS to stop from overlapping floats. |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<div style=" | <div style=" | ||
margin:0 auto; | margin: 0.2em auto; | ||
border: | border: 2px solid {{{border|#888888}}}; | ||
padding: | 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}}}; | ||
font-style:italic; | color: {{{text|white}}}; | ||
{{#ifeq: {{{italics}}} | no | |||
| font-style: normal; | |||
| font-style: italic; | |||
}} | |||
">{{{1|Example text}}}</div><noinclude> | ">{{{1|Example text}}}</div><noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||