0

I want to disable the lightblue color in select box on mouse hovering...... I don't want the blue color on mouse hover. Here is the fiddle

.select_box
{
    color: white;
    background-color: red;
}

.itemone
{
    background-color: red;
}

.itemone:hover
{
    background-color:red;
}

.itemtwo
{
    background-color: green;
}
Ali Çarıkçıoğlu
  • 1,304
  • 1
  • 12
  • 21

2 Answers2

1

The blue color, is the default color rendered by each browser.

You can moved to plugin like chosen

Praveen
  • 55,303
  • 33
  • 133
  • 164
0

The rendering for the select class is done by the browser it self. So there isn't much you can do with that. However, you could choose to build your own dropbox using jQuery.

    <div class="select">
    <ul>
        <li class="option darr">Dropdown one</li>
        <li class="option">Dropdown two</li>
        <li class="option">Dropdown three</li>
    <ul>
</div>

$('.select ul li.option').click(function() {
    $(this).siblings().toggle().removeClass('darr');
    $(this).addClass('darr');
});

This useful fiddle should help. (I'm not the author).

geekchic
  • 2,371
  • 4
  • 29
  • 41