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 2 of 2
  1. #1
    waka Ionsurge
    Join Date
    Feb 2005
    Location
    United Kingdom
    Posts
    899
    Thanks
    5
    Thanked 12 Times in 12 Posts

    Question Center text in a select dropdown box in Edge

    Does anyone know how to center align text in a <select> dropdown box?

    I've tried using text-align-last (with browser specific iterations) with zero luck when it comes to Edge. It works fine and dandy with Chrome and Firefox.

  2. #2
    Senior Coder coothead's Avatar
    Join Date
    Jan 2004
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    3,452
    Thanks
    3
    Thanked 608 Times in 594 Posts
    Hi there evo,

    form elements in general and the select element in particular,
    do not take kindly to attempts of customisation.

    "In the early days of the Web—around 1995—form controls were added
    to HTML in the HTML 2 specification.
    Due to the complexity of form widgets, implementors chose to rely on
    the underlying operating system to manage and render them."

    Source:-

    Why is it so hard to style form widgets with CSS?

    My suggestion, for what it's worth, would be leave the select element as it is.
    The only person who might be upset by this decision would be yourself.

    coothead
    ~ the original bald headed old fart ~


 

Tags for this Thread

Posting Permissions

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