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
  • #9402
Closed
Open
Issue created Aug 13, 2013 by Administrator@rootContributor

Responsive grids not laying out as expected

Created by: cfarquharson

If I wanted 4 columns in tablet or desktop but just two in mobile, then the code would be

<div class="row">
    <div class="col-6 col-lg-3">
        ...
    </div>
    <div class="col-6 col-lg-3">
        ...
    </div>
    <div class="col-6 col-lg-3">
        ...
    </div>
    <div class="col-6 col-lg-3">
        ...
    </div>
</div>

Because there is only one occurrence of the .row, but the grid cells in mobile are really two rows, wonky things happen when the content in the first grid cell is long....i.e. the other cells just stack up in a column, not in a row and the desired layout is not achieved. Added to this, it leaves large areas of unused white space.

Here`s an example:

http://jsfiddle.net/cfarquharson/kLwnK/1/

Assignee
Assign to
Time tracking