Main content ah kal rawh Docs navigation ah kal rawh
Check
in English

Clearfix rawh

Container chhunga floated content chu rang tak leh awlsam takin clearfix utility dahin clear theih a ni.

Parent elementfloat ah dahin awlsam takin s clear rawh . Mixin atan pawh hman theih a ni..clearfix

HTML-ah hman tur:

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

Mixin source code chu:

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

SCSS ah hian mixin hmang rawh:

.element {
  @include clearfix;
}

A hnuaia entirnan hian clearfix hman dan tur kan tarlang a. Clearfix tel lo chuan wrapping div hian buttons vel a span dawn lo a, chu chuan layout a tichhia ang.

html tih a ni
<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>