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
  • #32658
Closed
Open
Issue created Jan 02, 2021 by Administrator@rootContributor

Row gutter classes also affect container gutters

Created by: martinbean

Operation system: all Browser: all Reduced test case: https://codepen.io/martinbean/pen/gOweLmQ?editors=1000

If you have a container within a row, and that row has gutters removed (.row.g-0), the gutters are also removed from containers anywhere within that row (as it uses the --bs-gutter-x CSS variable, and the .g-0 class sets the value of that variable to zero).

I would expect containers to still retain its padding. Is this intended or not?

Example:

<div class="row g-0">
  <div class="col-12">
    <div class="container">
      <p>Container (now with no gutters)</p>
    </div>
  </div>
</div>
Assignee
Assign to
Time tracking