diff options
| author | XhmikosR <[email protected]> | 2021-09-07 21:49:51 +0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-09-07 21:49:51 +0300 |
| commit | 65413de3131294cbf7bc8bff94914cc8062149c6 (patch) | |
| tree | d606f927ef9d5e505245b0fce29366979d219f83 /site/content/docs/5.0/helpers/clearfix.md | |
| parent | 72e79d0e3997c3a850263880240f26684b9784f7 (diff) | |
| parent | 0d81d3cbc14dfcdca8a868e3f25189a4f1ab273c (diff) | |
| download | bootstrap-docs-offcanvas-navbar.tar.xz bootstrap-docs-offcanvas-navbar.zip | |
Merge branch 'main' into docs-offcanvas-navbardocs-offcanvas-navbar
Diffstat (limited to 'site/content/docs/5.0/helpers/clearfix.md')
| -rw-r--r-- | site/content/docs/5.0/helpers/clearfix.md | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/site/content/docs/5.0/helpers/clearfix.md b/site/content/docs/5.0/helpers/clearfix.md deleted file mode 100644 index 9e31474a4..000000000 --- a/site/content/docs/5.0/helpers/clearfix.md +++ /dev/null @@ -1,36 +0,0 @@ ---- -layout: docs -title: Clearfix -description: Quickly and easily clear floated content within a container by adding a clearfix utility. -group: helpers -aliases: "/docs/5.0/helpers/" ---- - -Easily clear `float`s by adding `.clearfix` **to the parent element**. Can also be used as a mixin. - -Use in HTML: - -```html -<div class="clearfix">...</div> -``` - -The mixin source code: - -{{< scss-docs name="clearfix" file="scss/mixins/_clearfix.scss" >}} - -Use the mixin in SCSS: - -```scss -.element { - @include clearfix; -} -``` - -The following example shows how the clearfix can be used. Without the clearfix the wrapping div would not span around the buttons which would cause a broken layout. - -{{< example >}} -<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> -{{< /example >}} |
