Source

Hlakiša

Ka pela le gabonolo hlakola diteng tše di phaphametšego ka gare ga setshelo ka go oketša utility ya clearfix.

Hlakola s gabonolo floatka go tlaleletša .clearfix go elemente ya motswadi . E ka šomišwa gape bjalo ka mixin.

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

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

Mohlala wo o latelago o bontšha ka moo clearfix e ka šomišwago ka gona. Ntle le clearfix div ya go phuthela e be e ka se span go dikologa dikonope tšeo di bego di tla baka peakanyo ye e senyegilego.

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