Source

Okulongoosa

Okulongoosa amangu era mu ngeri ennyangu ebirimu ebitengejja munda mu kibya nga ossaako ekintu ekiyamba okutereeza.

Kyangu okulongoosa floats nga ogatta .clearfix ku elementi omuzadde . Era asobola okukozesebwa nga mixin.

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

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

Ekyokulabirako kino wammanga kiraga engeri clearfix gy’esobola okukozesebwa. Awatali clearfix wrapping div teyandibadde span okwetoloola buttons ekyandireetedde layout okumenyeka.

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