Centre options in a drop down menu

  • tastysite
  • Proficient
  • Proficient
  • User avatar
  • Posts: 349
  • Loc: Brighouse, West Yorkshire, England

Post 3+ Months Ago

I am trying to centre the options tag using css but it wont work propley across all browsers using this css to centre the select tag
Code: [ Select ]
select {
    margin-bottom:5px;
    text-align:center;
    }
  1. select {
  2.     margin-bottom:5px;
  3.     text-align:center;
  4.     }

and this to centre the option tag
Code: [ Select ]
option {
    text-align:center;
    }
  1. option {
  2.     text-align:center;
  3.     }

In chrome only the select centre works, in IE none of it works (that's a surprise... NOT!) and in firefox it works fine! any advice on getting it working in ALL the browsers?
  • UPSGuy
  • Lurker ಠ_ಠ
  • Web Master
  • User avatar
  • Posts: 2733
  • Loc: Nashville, TN

Post 3+ Months Ago

To my knowledge, there is no option to do this up to IE7. Quick testing says no luck in IE8 either, but I just tried a few things. :(
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8416
  • Loc: USA

Post 3+ Months Ago

I don't think so tastysite... you got to use what you've got...

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 21 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.