Is there a way to make buttons enclosed in a <div>
with class="row"
and each button having class="span4"
only as wide as the text it contains, centered at 25%
, 50%
, and 75%
of the width
of the screen?
[aaa] [bbb] [ccc]
not
[ aaa ][ bbb ][ ccc ]
I am relatively new to bootstrap and not very proficient in CSS.
How can I achieve this layout?
My buttons also have class="btn-outline btn-default"
, but I don't think that should impact the solution.
At the moment, I am focusing on having exactly three buttons, but if there is an easy generic solution for any number of buttons, I would appreciate that too.