When trying to utilize the input-group
feature to showcase an input for quantity, a "Qty." label, and an "Add to basket" button all inline, the default behavior of full width creates an issue. How can I adjust the width so that the input has a fixed width of 40 pixels while allowing the button to be full width?
<div class="input-group">
<input type="text" class="form-control" aria-label="Amount (rounded to the nearest dollar)" style="width: 40px; float: right;">
<span class="input-group-addon">Qty.</span>
<span class="input-group-btn">
<button aria-label="Add" name="inWarenkorb" type="submit" value="Add" class="submit btn btn-primary" style="width:100%">
<span>Add to basket</span>
</button>
</span>
</div>
For more information and testing purposes, check out the JSFIDDLE: https://jsfiddle.net/d53g68hw/