如下所示,选择下拉列表不居中,略微位于右侧并显示选择箭头。如何将此下拉框设为居中以隐藏箭头..
.select-input {
position: relative;
margin-bottom: 15px;
}
.input-label {
max-width: 100%;
width: 100%;
margin-bottom: 5px;
font-size: 13px;
display: inline-block;
}
.select-input-text {
display: block;
background-color: rgb(255, 255, 255);
color: rgb(33, 36, 37);
font-size: 14px;
height: 40px;
line-height: 1.36;
padding: 0px 16px;
border-radius: 5px;
border-width: 1px;
border-style: solid;
border-color: rgb(228, 231, 234);
border-image: initial;
outline: none;
}
<div class="select-input">
<label for="company" class="input-label">company</label>
<select class="select-input-text" style="width: 300px;">
<option disabled="disabled" value="">select a category</option>
<option value="">manufacturer</option>
<option value="">retailer</option>
<option value="">distributor</option>
</select>
</div>