I try all the different code for center aligning and not work in chrome or IE. Here is my code. I'm trying to align center text in the dropbox. Any suggestion?
.dropdownmenu,
.dropdownmenu option
{
text-align:center!important;
}
<select class="dropdownmenu" name="memo[How did you hear about us?]" ">
<option value="Relativity website">Relativity Website</option>
<option value="Internet search">Internet Search</option>
</select>
In my remember, modify select
style is only allowed by Firefox
You can walk around by using a jQuery plugin which simulates a select with div
and others tags
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.