U gudub nuxurka muhiimka ah U gudub dukumentiyada navigation
Check
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.

Ku isticmaal HTML:

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

Koodhka isha mixin:

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

Isticmaal isku-darka gudaha SCSS:

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

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