CSS – input field background color

enter image description here

How can I change this purple color behind my input field? I already tried with background-color or with :hover but nothing happens. This is a CORE UI Admin Template and it’s main color is purple but I want it to change with my own color?

Add Comment
2 Answer(s)
.yourclass:focus {     border-color: green;     box-shadow: 0 0 10px green; } 

Though, you should probably find and change box-shadow and border-color colors in the original CSS file. You can use "inspect element" to find where it is.

Answered on July 15, 2020.
Add Comment

You can use the input[type=text]:focus{box-shadow: 2px 2px 0px #cccccc;} for changing the color

Answered on July 15, 2020.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.