Float utilities
Halfmoon comes with responsive utility classes which can be used to set the float property of elements.
Commenting
|
New message!
Jane Doe just sent you a new message.
|
Halfmoon comes with responsive utility classes which can be used to set the float property of elements.
The class names for the float utilities come in the the following formats:
The {breakpoint} can be sm, md, lg, or xl. If the breakpoint is not provided, the element will be affected on all screen sizes (including extra small screens). On the other hand, if it is provided, the element will be affected only for that breakpoint and up.
The {position} can be one of the following:
{position} | Description |
---|---|
left | Sets the float: left property |
right | Sets the float: right property |
none | Sets the float: none property |
You can see some of these classes in action in the example below:
<!-- Float left -->
<div class="float-left">
...
</div>
<!-- Float right -->
<div class="float-right">
...
</div>
<!-- Don't float -->
<div class="float-none">
...
</div>
<!-- Float left on medium screens and up (width > 768px) -->
<div class="float-md-left">
...
</div>
<!-- Float right on small screens and up (width > 576px) -->
<div class="float-sm-right">
...
</div>
<!-- Float left, don't float on extra large screens (width > 1200px) -->
<div class="float-left float-xl-none">
...
</div>
Floats can be easily cleared by adding the .clearfix class to the parent element.
<div class="clearfix">
<div class="float-left d-inline-block">Float left</div> <!-- d-inline-block = display: inline-block -->
<div class="float-right d-inline-block">Float right</div> <!-- d-inline-block = display: inline-block -->
</div>
Our goal is to make Halfmoon the go-to framework for building dashboards and tools on the web. We are already working on things like a form validator, number input, datepicker, multi-select (think Select2 without jQuery), tabs component, JSX docs, and so much more. You can learn more in the project roadmap.
However, we need your help to grow. So if you truly believe in our goal, please consider supporting us through Patreon.
The following is the highest tier, with a maximum of 1 sponsor.
(Also seen at the top of the page)
The following is the normal tier, with a maximum of 10 sponsors.
AYCD
Automation Done Right
Sponsor (9 available)
Halfmoon needs your support! Become a sponsor to place an image and description of your product here. Click here
The following people have generously decided to support Halfmoon.
Become a backer on Patreon .