.no-gutters in .container-fluid .row
See original GitHub issueHello, 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:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ditch the
.container-fluid
if you don’t need the horizontal padding.I wanted to have full-width
<hr />
withincontainer-fluid
. I was trying to achieve this with next snippet, but failed:So, I ended up with this approach:
It’s a pity though that we don’t have Bootstrap 4 built-in class to achieve the same.