in English

Clearfix

“Clearfix” programmasyny goşup, konteýneriň içinde ýüzýän mazmuny çalt we aňsat arassalaň.

Ene elementinefloat goşup , aňsatlyk bilen arassalaň . Garyndy hökmünde hem ulanylyp bilner..clearfix

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

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

Aşakdaky mysal, “Clearfix” -iň nädip ulanylyp bilinjekdigini görkezýär. “Clearfix” bolmasa, gaplama diwiniň bozulmagyna sebäp boljak düwmeleriň töwereginde aýlanmazdy.

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