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
<div class="clearfix">...</div>
// Mixin itself
@mixin clearfix() {
&::after {
display: block;
content: "";
clear: both;
}
}
// Usage as a mixin
.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.
<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>