Float Box Snippet

The float box snippet places content on the left or right side of the page, allowing text and other elements to wrap around it. 

The snippet will allow for three sizes that will proportionally affect a float box width and height. These sizes are small (sm), medium (md), large (lg), and extra-large (xl). The float direction is controlled by indicating a left or right direction in the snippet.

Float box example

When to use the float box snippet

Using a floatbox can enhance the visual design of a page on desktop and laptop size screens. It is often used to break up large amounts of text, or provide visual context when used with images, pull quotes, buttons, links, or brief passages of informative text.

When content is placed inside a float box, it is taken out of the normal flow of the document (though still remaining part of it). It is shifted to the left or right, until it touches the edge of the content area or another page element.

When the size of a screen becomes smaller than 768 pixels wide (phones & tablets), the float box will return to the flow of the document, and text will no longer flow around the contents of the box.

Usability guidance

Be careful not to place two float box snippets in close proximity with each other or a column snippet, as they may push against one another, creating spacing gaps on the page.

Floatbox example

 

Implementation

  1. Open a page in Omni CMS and enter editing mode.
  2. Place your cursor where you would like the top of the float box to start.
  3. From the toolbar, select the snippet icon  Snippet icon , which resembles a puzzle piece.
  4. From the list of snippets, select the Float Box snippet.
  5. Press the Insert button.
  6. Input the float direction and box size or leave the default values.
  7. Add your content.
  8. Save and Preview