Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

select box background image [duplicate]

Tags:

html

css

Possible Duplicate:
Background Image for Select (dropdown) does not work in Chrome

I need to change the select box background image to https://www.google.com/images/nav_logo101.png I am using this code:

<form>
    <select id='selectbox'>
        <option >A</option>
        <option >B</option>
    </select>
</form>

it might sound trivial but I tried all sorts of things and unfortunately they all failed.Any help would be appreciated

FIXED: I used this to fix it:

select#selectbox { -webkit-appearance: none; }
like image 916
cppit Avatar asked Feb 13 '26 17:02

cppit


1 Answers

Look here http://jsfiddle.net/8FydL/

form select#selectbox {
    width: 100px;
    height: 50px;
    background-image: url('https://www.google.com/images/nav_logo101.png');
}
like image 76
Mattia Larentis Avatar answered Feb 16 '26 07:02

Mattia Larentis



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!