question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

.no-gutters in .container-fluid .row

See original GitHub issue

Hello, I just started with the 4 alpha 6 version and trying to use the .no-gutters class in the .row of a .container fluid but the css is not working and not being overwritten to. Here is a code sample:

<section>
  <div class="container-fluid">
    <div class="row no-gutters">
      <div class="col-12">
        CONTENT SECTION
      </div>
    </div>
  </div>
</section>`

I saw some requests in the v3 about this.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
mdocommented, Jul 14, 2017

Ditch the .container-fluid if you don’t need the horizontal padding.

1reaction
Halfistcommented, Jul 12, 2018

I wanted to have full-width <hr /> within container-fluid. I was trying to achieve this with next snippet, but failed:

<div class="row no-gutters">
    <div class="col">
        <hr />
    </div>
</div>

So, I ended up with this approach:

.no-narrow {
    margin-left: -15px;
    margin-right: -15px;
}
<hr class="no-narrow" />

It’s a pity though that we don’t have Bootstrap 4 built-in class to achieve the same.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bootstrap 3, 4 and 5 .container-fluid with grid adding ...
no-gutters on the .row. Regarding dropping the container: Need an edge-to-edge design? Drop the parent .container or .container-fluid ...
Read more >
Gutters · Bootstrap v5.0
Gutters are the padding between your columns, used to responsively space and align content in the Bootstrap grid system.
Read more >
no-gutters - Bootstrap CSS class
Bootstrap CSS class no-gutters with source code and live preview. You can copy our examples and paste them into your project!
Read more >
Bootstrap CSS class: no-gutters - Shuffle
Bootstrap CSS class no-gutters with source code and live preview. ... <div class="container"> <div class="row no-gutters"> <div class="col-12 col-sm-6 ...
Read more >
Grid system · Bootstrap - Layout
container-fluid for full width. Rows are horizontal groups of columns that ensure your columns are lined up properly. We use the negative margin...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found