I have a dropdown with placeholder text. In other browsers, I managed to center this placeholder text, but in Chrome, text-align: center
Here is the HTML for Select:
.bookingform::-webkit-input-placeholder {
color: #FFF;
font-size: 18px;
font-family: "Raleway";
text-align: center;
}
.bookingform:-moz-placeholder {
color: #FFF;
opacity: 1;
font-size: 18px;
font-family: "Raleway";
text-align: center;
}
.bookingform::-moz-placeholder {
color: #FFF;
font-size: 18px;
font-family: "Raleway";
opacity: 1;
text-align: center;
}
.bookingform:-ms-input-placeholder {
color: #FFF;
font-size: 18px;
font-family: "Raleway";
text-align: center;
}
.bookingform:placeholder-shown {
color: #FFF;
font-size: 18px;
font-family: "Raleway";
text-align: center;
}
<select name="number-of-adults" class="wpcf7-form-control wpcf7-select" aria-invalid="false">
<option value="ADULTS*">ADULTS*</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
</select>
Run codeHide resultSo is there something I'm missing? In all my other text entries, their placeholders are centered, and the pop-ups are centered in other browsers such as Firefox.
source
share