in English

ক্লিয়াৰফিক্স

এটা ক্লিয়াৰফিক্স সঁজুলি যোগ কৰি এটা ধাৰকৰ ভিতৰত ভাসমান বিষয়বস্তু দ্ৰুত আৰু সহজে পৰিষ্কাৰ কৰক।

মূল উপাদানতfloat যোগ কৰি s সহজে পৰিষ্কাৰ কৰক । মিক্সিন হিচাপেও ব্যৱহাৰ কৰিব পাৰি।.clearfix

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

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

তলৰ উদাহৰণটোৱে দেখুৱাইছে যে ক্লিয়াৰফিক্সটো কেনেকৈ ব্যৱহাৰ কৰিব পাৰি। ক্লিয়াৰফিক্সৰ অবিহনে ৰেপিং ডিভ বুটামসমূহৰ চাৰিওফালে স্পেন নকৰিব যিয়ে এটা ভঙা বিন্যাসৰ সৃষ্টি কৰিব।

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