Topic: How to change form field focus colour

nathangrieve10 free asked 4 years ago

How to change colour of form outline and focus text when clicking on a form field here -


Grzegorz Bujański staff answered 4 years ago

Hi. You can overwrite this style: input[type="text"]:focus:not([readonly]) {
    border-color: red;
  box-shadow: inset 0 0 0 1px red;
} input[type="text"]:focus:not([readonly])+label {
    color: red;

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.19.1
  • Device: Desktop
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: Yes