in English

Clearfix

Byen vit ak fasil klè kontni flote nan yon veso lè w ajoute yon sèvis piblik clearfix.

Fasil klè floats lè w ajoute .clearfix nan eleman paran an . Kapab tou itilize kòm yon mixin.

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

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

Egzanp sa a montre kouman clearfix la ka itilize. San clearfix la vlope div la pa ta span alantou bouton yo ki ta lakòz yon layout kase.

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