Jya ku bintu nyamukuru Jya kuri docs
in English

Ibisobanuro

Byihuse kandi byoroshye gusiba ibintu bireremba muri kontineri wongeyeho ibisobanuro byingirakamaro.

Byoroshye gusiba floats wongeyeho .clearfix kubintu byababyeyi . Irashobora kandi gukoreshwa nka mixin.

Koresha muri HTML:

<div class="clearfix">...</div>

Inkomoko y'inkomoko ya kode:

@mixin clearfix() {
  &::after {
    display: block;
    clear: both;
    content: "";
  }
}

Koresha ivanga muri SCSS:

.element {
  @include clearfix;
}

Urugero rukurikira rwerekana uburyo ibisobanuro bishobora gukoreshwa. Hatabayeho gusobanura neza gupfunyika div ntishobora kuzenguruka buto yatera imiterere yamenetse.

<div class="bg-info clearfix">
  <button type="button" class="btn btn-secondary float-start">Example Button floated left</button>
  <button type="button" class="btn btn-secondary float-end">Example Button floated right</button>
</div>