Source

Fee n'elu

Tụgharịa na-ese n'elu ihe ọ bụla, gafee ebe nkwụsịtụ ọ bụla, na-eji ngwa ihe nlegharị anya na-anabata.

Nchịkọta

Klas ndị a na-arụ ọrụ na-ese n'elu ihe mmewere n'aka ekpe ma ọ bụ aka nri, ma ọ bụ gbanyụọ na-ese n'elu mmiri, dabere na nha nlele dị ugbu a site na iji akụrụngwa CSSfloat . !importantagụnyere iji zere nsogbu ndị akọwapụtara. Ndị a na-eji otu ebe nkwụsịtụ echiche dị ka sistemụ grid anyị. Biko mara na ụlọ ọrụ na-ese n'elu mmiri enweghị mmetụta na ihe ndị na-agbanwe agbanwe.

Klas

Jiri klaasị tụgharịa see n'elu:

Fee n'aka ekpe na nha nlele niile

Fee n'otu n'otu na nha nlele niile

Ejila ise n'elu n'ogo nlele niile
<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>

Ngwakọta

Ma ọ bụ site na Sass mixin:

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

Na-anabata

Ọdịiche anabatara dịkwa maka floaturu ọ bụla.

Fee n'aka ekpe na ọdụ ụgbọ elu nha SM (obere) ma ọ bụ karịa

Fee n'aka ekpe na ọdụ ụgbọ elu nha MD (ọkara) ma ọ bụ karịa

Fee n'aka ekpe n'ọdụ ụgbọ mmiri nwere nha LG (nnukwu) ma ọ bụ karịa

Fee n'aka ekpe n'ọdụ ụgbọ mmiri nwere nha XL (oke buru ibu) ma ọ bụ ka obosara

<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>

Nke a bụ klaasị nkwado niile;

  • .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