in English

Clearfix

Si degdeg ah oo fudud u nadiifi waxa sabbaynaya weelka dhexdiisa adiga oo ku daraya utility clearfix.

Si fudud u caddeyso floatadigoo ku daraya .clearfix xubinta waalidka . Waxa kale oo loo isticmaali karaa isku-dhafka.

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

// Usage as a mixin
.element {
  @include clearfix;
}

Tusaalaha soo socdaa wuxuu muujinayaa sida loo isticmaali karo nadiifinta. La'aanteed nadiifinta div-ga duubista ma dhaafi doonto hareeraha badhamada taasoo keeni doonta qaab-dhismeedka jaban.

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