Main content ah kal rawh Docs navigation ah kal rawh

Toggle floats chu element eng pawhah, breakpoint eng pawh kaltlangin, kan responsive float utilities hmangin.

A tlangpuiin

Heng utility class te hian element pakhat chu veilam emaw dinglam emaw ah an float a, a nih loh leh floating an titawp a, chu chu CSS floatproperty hmangin tuna viewport size a zirin a ni !importantspecificity issue awm lo turin a dah tel bawk. Hengte hian kan grid system ang bawkin viewport breakpoint an hmang a. Float utility hian flex items ah nghawng a nei lo tih hre reng ang che.

Viewport size zawng zawngah float start vek tur a ni

Viewport size zawng zawngah float end

Viewport size zawng zawngah float vek suh
<div class="float-start">Float start on all viewport sizes</div><br>
<div class="float-end">Float end on all viewport sizes</div><br>
<div class="float-none">Don't float on all viewport sizes</div>

Chhanna pe thei

Responsive variation pawh floatvalue tin atan a awm bawk.

Viewport size SM (small) emaw a aia zau emaw ah float start thin ang che

Viewport size MD (medium) emaw a aia zau emaw ah float start thin ang che

Viewport size LG (large) emaw a aia zau emaw ah float start theih a ni

Viewport size XL (extra-large) emaw a aia zau emaw ah float start thin ang che

<div class="float-sm-start">Float start on viewports sized SM (small) or wider</div><br>
<div class="float-md-start">Float start on viewports sized MD (medium) or wider</div><br>
<div class="float-lg-start">Float start on viewports sized LG (large) or wider</div><br>
<div class="float-xl-start">Float start on viewports sized XL (extra-large) or wider</div><br>

Support class zawng zawng chu hetiang hi a ni:

  • .float-start
  • .float-end
  • .float-none
  • .float-sm-start
  • .float-sm-end
  • .float-sm-none
  • .float-md-start
  • .float-md-end
  • .float-md-none
  • .float-lg-start
  • .float-lg-end
  • .float-lg-none
  • .float-xl-start
  • .float-xl-end
  • .float-xl-none
  • .float-xxl-start
  • .float-xxl-end
  • .float-xxl-none

Sass a ni

Utilities API hmanga thil tih a ni

Float utilities hi kan utilities API ah hian scss/_utilities.scss. Utilities API hman dan zir rawh.

    "float": (
      responsive: true,
      property: float,
      values: (
        start: left,
        end: right,
        none: none,
      )
    ),