E
E
Eugene M2021-01-10 15:03:43
Bootstrap
Eugene M, 2021-01-10 15:03:43

How to push a block to the right in bootstrap 5?

Please tell me how to push the block to the right edge in bootstrap 5? Details in the screenshot. I did float: right, but I think it should be done differently in bootstrap !?

5ffaed173e017290588964.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman, 2021-01-10
@Isildur12

I would make my own class on flex in css.
For example:

<div class='btn-wrapper-end'>
  <button>Ваша кнопка</button>
</div>

.btn-wrapper-end {
  display: flex;
  justify-content: flex-end;
}

Or, if you want purely through bootstrap classes, you can add the d-flex justify-content-end properties to the container of your button:
<div class='d-flex justify-content-end'>
  <button>Ваша кнопка</button>
</div>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question