0

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>
mjhm
  • 16,497
  • 10
  • 44
  • 55
user1819551
  • 21
  • 2
  • 7
  • possible duplicate of [Is it possible to center text in select box?](http://stackoverflow.com/questions/10813528/is-it-possible-to-center-text-in-select-box) – j08691 Sep 27 '13 at 21:06
  • Is not the same. They are using Jquery. I using Word Press – user1819551 Sep 27 '13 at 21:19

1 Answers1

1

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

56ka
  • 1,463
  • 1
  • 21
  • 37