in English

Ntanta

Guqula ukuntanta kunoma iyiphi into, kunoma iyiphi indawo yokuphumula, usebenzisa izinsiza zethu ezisabelayo ze-float.

Uhlolojikelele

Lezi zigaba zensiza zintanta into kwesokunxele noma kwesokudla, noma vimbela ukuntanta, ngokusekelwe kusayizi wamanje wembobo yokubuka usebenzisa isici se - CSS float. !importantifakiwe ukugwema izinkinga ezithile. Lezi zisebenzisa izindawo zokunqamula imbobo yokubuka efanayo nesistimu yethu yegridi. Sicela uqaphele ukuthi izinsiza ze-float azinawo umthelela ezintweni eziguqukayo.

Amakilasi

Guqula iflothi ngeklasi:

Ntanta kwesokunxele kubo bonke osayizi bembobo yokubuka

Ntanta kwesokudla kubo bonke osayizi bembobo yokubuka

Ungantanti kubo bonke osayizi bembobo yokubuka
<div class="float-left">Float left on all viewport sizes</div><br>
<div class="float-right">Float right on all viewport sizes</div><br>
<div class="float-none">Don't float on all viewport sizes</div>

Imiksi

Noma nge-Sass mixin:

.element {
  @include float-left;
}
.another-element {
  @include float-right;
}
.one-more {
  @include float-none;
}

Iyasabela

Ukwehluka okusabelayo kukhona futhi floativelu ngalinye.

Ntanta kwesokunxele kuzimbobo zokubuka ezinosayizi ongu-SM (oncane) noma obanzi

Ntanta kwesokunxele kuzimbobo zokubuka ezinosayizi ongu-MD (omaphakathi) noma ngaphezulu

Ntanta kwesokunxele kuzimbobo zokubuka ezinosayizi we-LG (enkulu) noma ebanzi

Ntanta kwesokunxele kuzimbobo zokubuka ezinosayizi we-XL (ezinkulu kakhulu) noma ezibanzi

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

Nawa wonke amakilasi okusekela;

  • .float-left
  • .float-right
  • .float-none
  • .float-sm-left
  • .float-sm-right
  • .float-sm-none
  • .float-md-left
  • .float-md-right
  • .float-md-none
  • .float-lg-left
  • .float-lg-right
  • .float-lg-none
  • .float-xl-left
  • .float-xl-right
  • .float-xl-none