title: Bootstrap 5 - Add 2 buttons just below the every image
body: <p>I would like to add 2 buttons(fa-plus &amp; fa-minus) just below every image. The buttons must stick with the image. I have added the code but the buttons are not sticked with the image. How I can do that? Is there any better logic to doing this? I'm having trouble understanding CSS and Bootstrap.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>```
  .image-card {
  width: 45px;
  height: 40px;
  }
  
  .image-card img {
  width: 100%;
  min-height: 100%;
  }
  ```</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js"&gt;&lt;/script&gt;
  &lt;link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css" rel="stylesheet" /&gt;
  &lt;div class="row"&gt;
      &lt;div class="col-3"&gt;
          &lt;div class="card"&gt;
              &lt;div class="card-body"&gt;
                  &lt;div class="card mb-2 box"&gt;
                      &lt;div class="card-body"&gt;
                          &lt;div class="d-flex flex-row justify-content-center"&gt;
                              &lt;div class="image-card"&gt;
                                  &lt;img class="p-1" src="https://i.stack.imgur.com/aFYTl.jpg?s=328&amp;g=1" /&gt;
                                  &lt;div class="btn-group" role="group" aria-label="Basic mixed styles example"&gt;
                                      &lt;button type="button" class="btn btn-sm btn-success"&gt;
                                          &lt;i class="fa fa-plus" aria-hidden="true"&gt;&lt;/i&gt;
                                      &lt;/button&gt;
                                      &lt;button type="button" class="btn btn-sm btn-danger"&gt;
                                          &lt;i class="fa fa-minus" aria-hidden="true"&gt;&lt;/i&gt;
                                      &lt;/button&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                              &lt;div class="image-card"&gt;
                                  &lt;img class="p-1" src="https://i.stack.imgur.com/aFYTl.jpg?s=328&amp;g=1" /&gt;
                                  &lt;div class="btn-group" role="group" aria-label="Basic mixed styles example"&gt;
                                      &lt;button type="button" class="btn btn-sm btn-success"&gt;
                                          &lt;i class="fa fa-plus" aria-hidden="true"&gt;&lt;/i&gt;
                                      &lt;/button&gt;
                                      &lt;button type="button" class="btn btn-sm btn-danger"&gt;
                                          &lt;i class="fa fa-minus" aria-hidden="true"&gt;&lt;/i&gt;
                                      &lt;/button&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                              &lt;div class="image-card"&gt;
                                  &lt;img class="p-1" src="https://i.stack.imgur.com/aFYTl.jpg?s=328&amp;g=1" /&gt;
                                  &lt;div class="btn-group" role="group" aria-label="Basic mixed styles example"&gt;
                                      &lt;button type="button" class="btn btn-sm btn-success"&gt;
                                          &lt;i class="fa fa-plus" aria-hidden="true"&gt;&lt;/i&gt;
                                      &lt;/button&gt;
                                      &lt;button type="button" class="btn btn-sm btn-danger"&gt;
                                          &lt;i class="fa fa-minus" aria-hidden="true"&gt;&lt;/i&gt;
                                      &lt;/button&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                              &lt;div class="image-card"&gt;
                                  &lt;img class="p-1" src="https://i.stack.imgur.com/aFYTl.jpg?s=328&amp;g=1" /&gt;
                                  &lt;div class="btn-group" role="group" aria-label="Basic mixed styles example"&gt;
                                      &lt;button type="button" class="btn btn-sm btn-success"&gt;
                                          &lt;i class="fa fa-plus" aria-hidden="true"&gt;&lt;/i&gt;
                                      &lt;/button&gt;
                                      &lt;button type="button" class="btn btn-sm btn-danger"&gt;
                                          &lt;i class="fa fa-minus" aria-hidden="true"&gt;&lt;/i&gt;
                                      &lt;/button&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>