Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jan 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    styling select-tag i IE7

    I want all text for every option to be centered, this works fine in all browsers except for IE7

    I've tried style="text-align: center;" on the <select> tag and also on evert <option> tag, but no success.

    Is there a new way to make this possible in IE7, or doesn't the new <select> tag support this type of styles at all?

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    I doubt it works in IE6. The styling of the select tag is very limited in IE. You will need to create your own select menu using javascript

    http://www.badboy.ro/articles/2005-0...forms_preview/
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    Regular Coder
    Join Date
    Apr 2006
    Posts
    117
    Thanks
    2
    Thanked 0 Times in 0 Posts
    You could try using an external stylesheet with CSS.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •