Skip to content

Dose Gutters deprecated in bootstrap 5 #40585

Answered by coliff
mina20088 asked this question in Q&A
Discussion options

You must be logged in to vote

Gutters are working as expected, but there are a few issues in your code. You should have the content within a div within the column.. e.g.

<div class="container">
  <div class="row gx-5">
    <div class="col-sm-6 col-md-2 col-lg-3">
      <div class="border p-3">1/4</div>
    </div>
    <div class="col-sm-6 col-md-2 col-lg-3">
      <div class="border p-3">2/4</div>
    </div>
    <div class="col-sm-6 col-md-2 col-lg-3">
      <div class="border p-3">3/4</div>
    </div>
    <div class="col-sm-6 col-md-2 col-lg-3">
      <div class="border p-3">4/4</div>
    </div>
  </div>
</div>

Here's a working example:
https://codepen.io/coliff/pen/GRabWWq

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mina20088
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants