R
R
Roman2020-02-15 18:52:48
Bootstrap
Roman, 2020-02-15 18:52:48

How to center submit with Bootstrap-4?

How to align Submit in the middle of the div block using bootstrap in this form?

<div class="form-group row pl-1">
  <div class = "col-sm-2">
    {{ Form::submit('Редактировать профиль', ['class' => 'btn btn-primary m-auto']) }}
  </div>
</div>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
d4c4237abc, 2020-02-15
@gagablik

https://getbootstrap.com/docs/4.0/utilities/flex/
Here are the built-in classes for alignment

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question