title: How can I get the same distance between two buttons and a select element on the same line?
body: <p>I use Bootstrap 5 and I tried to place a select and 2 buttons on the same line (select should be in center, one button on the right side of the select, and another button on the left side), but I didn't succeed two things</p>
  <ul>
  <li>get the same distance between select and buttons</li>
  <li>get the same distance between buttons and div end.</li>
  </ul>
  <p>As in the image: select should have most of the space from line, buttons should not touch the select, buttons should not touch the div end. The problem is about the distance between buttons and select <em>and</em> the distance between buttons and div end.</p>
  <p>Please see the image. (the problems can be seen more clearly on small screens)</p>
  <p>HTML: (I don't use other CSS file)</p>
  <pre><code>            &lt;div class=&quot;row mt-3 mb-2 text-center&quot;&gt;
                  &lt;div class=&quot;col-2&quot;&gt;
                      &lt;button class=&quot;btn btn-success&quot;&gt;Prev&lt;/button&gt;
                  &lt;/div&gt;
                  &lt;div class=&quot;col-8&quot;&gt;
                      &lt;select class=&quot;form-select&quot; aria-label=&quot;Default select example&quot;&gt;
                          &lt;option selected&gt;Open this select menu&lt;/option&gt;
                          &lt;option value=&quot;1&quot;&gt;One&lt;/option&gt;
                          &lt;option value=&quot;2&quot;&gt;Two&lt;/option&gt;
                          &lt;option value=&quot;3&quot;&gt;Three&lt;/option&gt;
                      &lt;/select&gt;
                  &lt;/div&gt;
                  &lt;div class=&quot;col-2&quot;&gt;
                      &lt;button class=&quot;btn btn-success&quot;&gt;Next&lt;/button&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
  </code></pre>
  <p><a href="https://i.stack.imgur.com/EHMuU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EHMuU.png" alt="enter image description here" /></a></p>
  <p><strong>Note</strong>: the border ins't included in html, I added that border with Paint editor just for a better view of the situation.</p>