Css - drop-down list (option, select)

I was able to control the width of the option, etc.

However, you know that the selected option is highlighted, making the default color blue and text color. This blue background does not cover the entire width of the selected parameter. However, a blue background covers the entire text. However, I would like it to cover the entire width of the option.

Check out this image to find out what I mean:

http://img69.imageshack.us/img69/2752/dropdowno.jpg

This is how I set the width of the option and choose

option
{
    width:100px;
}
select
{
    width:100px;
}
+3
source share
1 answer

, ; . , ( , ).

Javascript , , . jQuery, .

+1

Source: https://habr.com/ru/post/1734166/


All Articles