开发者

Add padding to select input in chrome?

开发者 https://www.devze.com 2023-04-01 04:50 出处:网络
The select input element for categories in my site http://www.kbay.in , has a padding like so: 开发者_C百科padding:5px;

The select input element for categories in my site http://www.kbay.in , has a padding like so:

开发者_C百科
padding:5px;

The padding works fine in Firefox, but in chrome only adds the top and right padding, and it looks kind of awkward, how can I fix this?


Your select element has (for some reason) a CSS property as follows:

padding-bottom: 0 !important;

You need to remove the !important otherwise it will not allow it to be overriden.

0

精彩评论

暂无评论...
验证码 换一张
取 消