<div class="row">
<div class="span12">
<div class="btn-toolbar">
<!-- buttons go here -->
</div>
</div>
</div>
Is there a way to center my button toolbar without using offset?
I tried applying "margin: 0 auto;" to my toolbar div but this did not work.
http://jsfiddle.net/rx9Y2/
<div class="row">
<div class="span12">
<div class="btn-toolbar">
<div class="btn-group">
<button class="btn">1</button>
<button class="btn">2</button>
<button class="btn">3</button>
</div>
<div class="btn-group">
<button class="btn">1</button>
<button class="btn">2</button>
<button class="btn">3</button>
</div>
</div>
</div>
</div>
.btn-toolbar{
text-align: center;
}
you can use inline css and it work for me.
<div class="btn-toolbar" style="justify-content: center; display: flex;" >
Thanks.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With