I am looking to create + and - buttons in Bootstrap where the + is stacked on top of the - with both buttons occupying 50% of the height of the full div each.
Here's an example of what I would like to achieve:
https://i.sstatic.net/DrnEt.png
To implement this, I have created an input field with the input-group-append
class as follows:
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<div class="input-group-append">
<span class="btn btn-outline-primary">
+
</span>
<span class="btn btn-outline-danger">
-
</span>
</div>
However, the current layout looks like this:
https://i.sstatic.net/F5W9P.png
As you can see, each button takes up the entire block, resulting in too much space being used. If I could stack them vertically, it would allow for more room for other inputs.
Is there a way to achieve this desired layout?