Change blue color in Select Tag

#1

hi
How can I change the blue colors to another color?
image

0 Likes

#2

You’ll need to show us what code you presently have…

0 Likes

#3
  <div class="form-group">
    <select asp-for="ProvinceId" id="Cat1" name="ProvinceId" class="form-control " asp-items="@(new SelectList(ViewBag.ListOfProvince,"Id","Name"))"></select>
   </div>
0 Likes

#4

and your CSS?

0 Likes

#5

Hi there shabzadeh97,

you cannot change the background-color
of the option element with CSS. Messing
around with form elements for personal
preference is frowned upon, so don’t do it.

coothead

0 Likes

#6

image

I just want to change the color of the box, like Google, which has made it more bold

0 Likes

#7

I have nothing

0 Likes

#8

That looks like a border on the select.

select{border:2px solid blue}

2 Likes

closed #9

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.

0 Likes