3

I have two types of input. A select dropdown box, and a regular input.

On the input, I have added a padding: 10px; that makes it look big.

The issue is once I put the select box beside it, they are both different heights.

How do I either apply the padding to the select, or make it the same height as the input.

Here is a live example.

Edit 1

This is how it looks to me: enter image description here

marcamillion
  • 32,933
  • 55
  • 189
  • 380

2 Answers2

8

Try adding -webkit-appearance: none at least to the <select> but possibly to both. OSX really wants their controls to look apple-y

Explosion Pills
  • 188,624
  • 52
  • 326
  • 405
  • Anyway to get this to not look weird on OS X? By weird, I mean 'plain'? – marcamillion May 19 '13 at 03:07
  • @marcamillion there may be other styles being applied; you can look at the "Computed Styles + Show Inherited" to see what's being applied. I don't have OS-X available right now, so I can't tell – Explosion Pills May 19 '13 at 03:08
  • Hey @ExplosionPills - any ideas as to why this makes the text disappear? It is the highest rank style too - so there is no other style that it is inheriting that is causing that, that I can see. Here are more details - http://stackoverflow.com/questions/16631801/why-does-using-webkit-appearance-none-on-a-select-option-in-osx-make-the-tex – marcamillion May 19 '13 at 09:33
0

Add this attribute to the select element:

-webkit-appearance: menulist-button;

Check this answer for more details: https://stackoverflow.com/a/3075922

Community
  • 1
  • 1
cmac
  • 38
  • 5