Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Issues
  • #9454
Closed
Open
Issue created Aug 14, 2013 by Administrator@rootContributor

Solution using existing Bootstrap CSS to clear floats on responsive grids

Created by: cfarquharson

Per #8810 (closed) and #9402 (closed) , the solution is actually already possible with your code.

Just use class="clearfix visible-*" to force clearing of grids

Demo here: http://jsfiddle.net/cfarquharson/JSWar/1/

It might be good to add this to the documentation as this will likely come up over and over as developers realize the height of their content will affect the layout of their responsive grids if they swap grid widths for different resolutions.

Example:

<section class="row">
    <section class="col-xs-6 col-sm-6 col-md-3 col-lg-3">
       ...
    </section>
    <section class="col-xs-6 col-sm-6 col-md-3 col-lg-3">
        ...
    </section>
    <div class="clearfix visible-xs"></div>
    <div class="clearfix visible-sm"></div>
    <section class="col-xs-6 col-sm-6 col-md-3 col-lg-3">
         ...
    </section>
    <section class="col-xs-6 col-sm-6 col-md-3 col-lg-3">
         ...
    </section>
</section>
Assignee
Assign to
Time tracking