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.

<div class="clearfix">...</div>
// Mixin itself
@mixin clearfix() {
  &::after {
    display: block;
    content: "";
    clear: both;
  }
}

// Usage as a mixin
.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-left">Example Button floated left</button>
  <button type="button" class="btn btn-secondary float-right">Example Button floated right</button>
</div>