У меня есть карта начальной загрузки-4 с нижним колонтитулом.Внутри нижнего колонтитула есть поле ввода (фиксированная ширина) и кнопка.Кнопка должна расшириться до ширины: 100% - ширина поля ввода.
https://jsfiddle.net/aq9Laaew/224543/
input {
width:3rem;
}
<div class="card">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">The input field has a fixed width, the button should fill-in the rest of the line.</p>
</div>
<div class="card-footer">
<input type="text" value="1" />
<button>
Rest of width
</button>
</div>
</div>
<div class="card">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">The input field has a fixed width, the button should fill-in the rest of the line.</p>
</div>
<div class="card-footer">
<div class="col-auto">
<input type="text" value="1" />
</div>
<div class="col-12">
<button>
Rest of width
</button>
</div>
</div>
</div>
Как это сделать?Как вы можете видеть на скрипке, я попытался использовать col-auto, но это разбивает строку с кнопкой input + на 2 строки.