Skip to main content Skip ad navigationem soUicitudo
Check
in English

Clearfix

Cito et facile fluitasse contentum in vase addendo clarificam utilitatem.

Facile patet s elemento parentisfloat addendo . Potest etiam adhiberi ut mixin..clearfix

Utere in HTML:

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

Ex codice fonte mixin:

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

Mixin in SCSS utere:

.element {
  @include clearfix;
}

Hoc exemplum patet quomodo manifestatio adhiberi potest. Sine clarifica involutione div involucris globulis quae fractis causarent extensionem non circumirent.

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>