JSFiddle - React, Tailwind, and code Playground
by John Doe
HTML
<div class="qty_cont">
<a class="ic minus" href="javascript:void(0)">-</a>
<input type="text">
<a class="ic plus" href="javascript:void(0)">+</a>
</div>
CSS
*{
vertical-align: middle;
box-sizing: border-box;
}
.qty_cont{}
.qty_cont .ic{
text-decoration: none;
color: #252525;
width: 30px;
height: 30px;
line-height: 30px;
text-align: center;
background-color: #eee;
border: 1px solid #252525;
display: inline-block;
}
.qty_cont input{
border: 1px solid #252525;
width: 30px;
height: 30px;
text-align: center;
}
.qty_cont .minus{
margin-right: -6px;
}
.qty_cont .plus{
margin-left:-6px;
}