Float

Float

This macro displays content that floats to the left or right of the surrounding text.

This macro is currently not available on Cloud.

Macros will be migrated along with the page, and no data will be lost after migration. On Cloud, the macros will not function, but the contents are shown in both View mode and Edit mode. In Edit mode, they will also be marked as (Legacy). More details are available on this FAQ page.

Parameters

Other than the side parameter, the other parameters are standard CSS values for the properties of the same name.

Name

Required

Migratable to cloud?

Default value

Description

[default] / side

 Optional

No

 

The side to float on. Can be:

  • left

  • right

width

 Optional

No

 

CSS defining the width of the floating block.

For example, 200px.

background

 Optional

No

 

CSS defining the background colour or image. 

border

 Optional

No

 

CSS defining the border to put around the floating block. 

For example, solid blue 1px.

margin

 Optional

No

 

CSS defining the margin to surround the block with. 

For example, 5px.

padding

 Optional

No

 

CSS defining the padding inside the block.

For example, 5px.

Related pages