Float elements based on different viewport and screen sizes using bootstrap.
Syntax:
float-none
to set the element do not float on any viewport.float-start
to set the element float from starting point of the container on any viewport.float-end
to set the element float to ending point of the container on any viewport.float-{breakpoint}-none
to set the element do not float on specified screen size.float-{breakpoint}-start
to set the element float from starting point of the container on specified screen size.float-{breakpoint}-end
to set the element float to ending point of the container on specified screen size.- List of breakpoints:
sm
- Small screen sizemd
- Medium screen sizelg
- Large screen sizexl
- Extra large screen sizexxl
- Extra extra large screen size
<!-- Float from starting point of the container -->
<div class="float-start">...</div>
<!-- Float from starting point of the container on medium screen size -->
<div class="float-sm-end">...</div>
<!-- Do not float on large screen size -->
<div class="float-lg-none">...</div>