Skip to content

Quickly and easily clear floated content within a container by adding a clearfix utility. Free for personal & commercial use.

Notifications You must be signed in to change notification settings

mdbootstrap/bootstrap-clearfix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

What is clearfix in Bootstrap?

Clearfix is a CSS solution to deal with a bug that occurs when two floated elements are stacked next to each other. Bootstrap provides a special class to solve this problem.

Easily clear floats by adding .clearfix to the parent element. Can also be used as a mixin.

Use in HTML:

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

The mixin source code:

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

Much more examples and a detailed description can be found at 📄 Documentation page

About

Quickly and easily clear floated content within a container by adding a clearfix utility. Free for personal & commercial use.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages