Template:SideBox: Difference between revisions
Jump to navigation
Jump to search
en>Thomas Eyre m 1 revision imported |
Thomas.Eyre (talk | contribs) m 1 revision imported |
||
(No difference)
|
Latest revision as of 20:32, 7 January 2025
{{{1}}}
The following parameters accept the same values as the HTML "style" attribute properties with the same names.
- e.g to change
float:{{{float|right}}}
define '|float=left
'.
Parameters:
- clear: left, right, both
- font-size: http://www.w3.org/TR/CSS21/fonts.html#font-size-props
- text-align: http://www.w3.org/TR/CSS21/text.html#alignment-prop (default: center)
- bgcolor: (background-color) http://www.w3.org/TR/CSS21/colors.html#background
- width: http://www.w3.org/TR/CSS21/visudet.html#the-width-property (default: 250px)
- min-width: http://www.w3.org/TR/CSS21/visudet.html#min-max-widths (default: 200px, only meaningful if width is specified in %)
- float: right or left (default: right)
The "style" parameter allows any other CSS attributes to be set. One of the previous parameters is preferable to using "style", as it makes the template syntax easier to read. The "higher" parameter positions the box by the given units higher than without the parameter (e.g. higher=1em).