Is there a way to achieve this layout similar to the Button Groups in Bootstrap? Check out the example here
This is my current markup:
<div class='button-group'>
<button>1</button>
<button>2</button>
<button>3</button>
</div>
If the parent container (.button-group) has a CSS property of width: 100%;, how can I make the buttons automatically take up 33.33% of the width each, or 25% if there are 4 buttons, and so on...
Is there a way to achieve this using CSS?
I have already tried implementing it on JSFiddle