Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.73 KB

File metadata and controls

33 lines (24 loc) · 1.73 KB
description
A left or right "floated" piece of content

Float

👁️ PREVIEW

A piece of floating content that the main page content will flow around. Useful for putting a figure to the side in a long page of paragraphs.

{% raw %}
{% capture content %}
  {% include figure.html ... %}
{% endcapture %}

{%
  include float.html
  content=content
  flip=true
%}

Several paragraphs of text.

{% include float.html clear=true %}
{% endraw %}
ParameterDescriptionDefault
contentArbitrary content to flow around.
flipWhether to flip side of page content floats to.false (floats to left)
clearSet to true to "stop" the current float, i.e. content after this will no longer flow around the previous float component, and will instead go below it.

{% hint style="info" %} In general, you shouldn't need the clear parameter, because you should be using this component when the content flowing around is much taller/longer than the floating content (thus the floating content will never push and interfere with undesired things like headings). If you need two roughly equal height things next to each other, you can use the cols or even the feature component instead (as long as you're okay with equal width). {% endhint %}