When I set the height of an option in a select listbox, the text in the option is aligned top by default. How can I make it be aligned in the middle? (I tried the obvious vertical-align and line-height, didn’t work)
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
height of select, padding-top of select – should be calculated, depending on the overall height of all option elements.
I think for universality should make a calculation script on jQuery and substitute the appropriate values.
at least means I can not see the css universal solution