Я использую "Bootstrap -4". Представьте, что у меня есть следующая таблица:
<div class="table-responsive">
<table class="table table-sm table-hover">
<thead>
<tr>
<th>Item 01</th>
<th>Item 02</th>
<th class="col">Buttons</th>
<th class="col-1">Item 04</th>
</tr>
</thead>
<tbody>
<tr>
<td>Item 01</td>
<td>Very length column</td>
<th class="col">
<div class="row no-gutters">
<div class="col-2">
<button class="btn btn-secondary btn-block">
-
</button>
</div>
<div class="col text-center quantity">
7 in cart
</div>
<div class="col-2">
<button class="btn btn-secondary btn-block">
+
</button>
</div>
</div>
</th>
<th class="col-1">Item 04</th>
</tr>
</tbody>
</table>
</div>
Знаки кнопок, такие как -
и +
, отлично смотрятся на больших экранах:
![enter image description here](https://i.stack.imgur.com/esl75.png)
Однако на меньших устройствах (например, 275px
) эти знаки не выровнены:
![enter image description here](https://i.stack.imgur.com/iLHYC.png)
Возможно ли выравнивание знаков такие как -
и +
в кнопках на небольших устройствах?
Пример можно увидеть здесь.