Search
 
SCRIPT & CODE EXAMPLE
 

CSS

change border highlight color on an input text element

input:focus { 
    outline: none !important;
    border-color: #719ECE;
    box-shadow: 0 0 10px #719ECE;
}
textarea:focus { 
    outline: none !important;
    border-color: #719ECE;
    box-shadow: 0 0 10px #719ECE;
}
Comment

change input border color when selected

input:focus {
	outline: none;
  	border: 1px solid red;
}
Comment

change border highlight color on an input text element

.input:focus {
    outline: none !important;
    border:1px solid red;
    box-shadow: 0 0 10px #719ECE;
}
Comment

how to change input border color with js

document.getElementById("fName").className = document.getElementById("fName").className + " error";  // this adds the error class

document.getElementById("fName").className = document.getElementById("fName").className.replace(" error", ""); // this removes the error class
Comment

PREVIOUS NEXT
Code Example
Css :: use text-align to justify the paragraph style 
Css :: css breakpoints 
Css :: detect portrait landscape css 
Css :: css last element with class name 
Css :: box shadow top and bottom only 
Css :: bootstrap media queries 
Css :: css line break width 
Css :: ion-tab-bar transparent 
Css :: antd css import 
Css :: css rotate 90 degrees 
Css :: css rounded corners at top only 
Css :: css make text transparent 
Css :: opacity animation css 
Css :: how to increase space between lines in css 
Css :: unselectable css property 
Css :: css space between td 
Css :: add alpha value to css color variable 
Css :: How to find the key of the largest value hash? 
Css :: install tailwind with cdn 
Css :: not(:last-of-type css) 
Css :: rust get current date 
Css :: How do center using margin 
Css :: rgba white color 
Css :: white border css 
Css :: css all except last 
Css :: degradado color css 
Css :: check if audio element is playing css 
Css :: css grid full width row 
Css :: how to rotate picture to the right in css 
Css :: center text horizontally and vertically inside a div in css 
ADD CONTENT
Topic
Content
Source link
Name
4+3 =