Template:Float

From Uncyclopedia, the content-free encyclopedia
Jump to navigation Jump to search

float:none; margin: 2px auto 2px auto; clear:none;



Inserts CSS into stylesheet for float, clear and margin property handlers.

Simple Usage

{{float|f={{{f|none}}}|clear={{{clear|{{{f|none}}}}}}|m=2px auto|mflr=1.5em}}

Basic Usage

{{float|f={{{f|none}}}|clear={{{clear|{{{f|none}}}}}}|mtb={{{mtb|.5em}}}|mfl={{{mfl|1.5em}}}|mfr={{{mb|1em}}}}}

Usage with basic options

{{float|f={{{f|none}}}|mt={{{mt|2px}}}|mb={{{mb|2px}}}|ml={{{mt|2px}}}|mr={{{mb|2px}}}|mft={{{mft|2px}}}|mfb={{{mfb|2px}}}|mfl={{{mt|1em}}}|mfr={{{mb|1em}}}|clear={{{clear|{{{f|none}}}}}}}}

Full usage

{{float|f={{{f|none}}}|mf={{{mf|0}}}|mfll={{{mfll|0}}}|mfrr={{{mfrr|0}}}|mt={{{mt|2px}}}|mb={{{mb|2px}}}|mtb={{{mtb|2px}}}|ml={{{mt|2px}}}|mr={{{mb|2px}}}|mlr={{{mlr|2px}}}|mft={{{mft|2px}}}|mfb={{{mfb|2px}}}|mftb={{{mftb|2px}}}|mfl={{{mt|1em}}}|mfr={{{mb|1em}}}|mflr={{{mflr|1em}}}|m={{{m|{{{mt|{{{mtb|2px}}}}}} {{{mr|{{{mlr|2px}}}}}} {{{mb|{{{mtb|2px}}}}}} {{{ml|{{{mlr|2px}}}}}}}}}|margin={{{margin|{{{mt|{{{mtb|2px}}}}}} auto {{{mb|{{{mtb|2px}}}}}} auto}}}|clear={{{clear|{{{f|none}}}}}}}}

*Many otions may be removed*

|mfll= margin-left when floated left
|mfrr= margin-right when floated right
|mf= mfll and mfrr are the same
|mfl= margin-right when floated left
|mfr= margin-left when floated right
|mlr= ml and mr are the same
|mtb= mt and mb are the same
|mflr= mfl and mfr are the same
|mftb= mft and mfb are the same
|m= margin for no float (mt mr mb ml)
|margin= margin for center float (default)