Access Keys:
Skip to content (Access Key - 0)

float macro

Overview:

The {float} macro allows you to position a block of content on the left or right of the page...

While it's relatively easy to make images left or right aligned, there is no standard Wiki Markup Editor to do the same for other types of content. The {float} macro fills this gap by allowing you to make any content left or right aligned.

Parameters:

The {float} macro has the following parameters:

{float:side=left/right|width=x|background=bkg|border=brdr|margin=m|padding=p}your content{float}
Parameter Required Default Notes
default /
side
right The location of the output:
  • right - the panel will be right-aligned (default)
  • left - the panel will be left-aligned
width   By default the panel will have a variable width that scales to fit the content within. However, if you set this parameter, the width will be locked and the content will wrap within the panel.
background white This parameter allows you to customise the panel background.
border 1px solid #CCCCCC This parameter allows you to customise the panel border.
margin   This panel allows you to define the margin between the panel border and any content outside the panel.
padding   This panel allows you to define the padding between the panel border and the content it contains.

Examples:

Hints and Tips

As you can see from the Content Layout example above, this macro is ideal for insetting pictures and other content in to your page layout.

The macro is also ideal for creating simple navigation bars, like the one shown to the right that uses the toc macro.

Frequently Asked Questions

Q What's that {loremipsum} thing?
A It generates some Latin text - ideal for examples, etc. See loremipsum macro for more information.
Q What's with the chese and aubergine?
A We were celebrating the 100,000,000th download of by uploading a picture to their gallery.

See Also



Ask questions, get help and report bugs & issues on our Community Site

View old comments


Adaptavist Theme Builder Powered by Atlassian Confluence