Center Align Select Menu Text in HTML

Ever needed to center align Select Menu Text in HTML with CSS? If you did and succeeded with text-align: center in FireFox but failed in Chrome then fear not as we are giving you this simple tip to make it work in Chrome and Safari on both desktop as well as in mobile phone screens.



Simply use the following piece of code to center align text in the select menu.

select {
  text-align: center;
  text-align-last: center;
  /* webkit*/
}

Note: This solution is to center align the placehold/selected text option within select menu not the individual options’ text.

Got any tips of yours to share with us? If you do then please share with us through the comments section below.



5 Comments

  • I enjoy you because of all of the effort on this blog. Betty delights in carrying out internet research and it's easy to see why. A lot of people hear all about the compelling form you convey advantageous guidance by means of the blog and attract contribution from other individuals about this area and my child has always been becoming educated a great deal. Enjoy the remaining portion of the new year. You're carrying out a brilliant job.
  • I enjoy you because of all of the effort on this blog. Betty delights in carrying out internet research and it's easy to see why. A lot of people hear all about the compelling form you convey both interesting and useful guidelines by means of the blog and attract contribution from other individuals about this area of interest and my child has always been becoming educated a great deal. Enjoy the remaining portion of the new year. You're carrying out a dazzling job.
  • Center Align Select Menu Text in HTML – Theme Mates [url=http://www.g8a910g947hj93htz9v5ogym4u833h6js.org/]uedfnwmfj[/url] aedfnwmfj edfnwmfj http://www.g8a910g947hj93htz9v5ogym4u833h6js.org/
  • I your writing style truly loving this internet site. Paulette Darnall Holsworth
  • Good web site you have below, i do agree on some issues though, but not all. Rhody Knox Tucky

Leave a comment