I\'m new to CSS. I have a input text field where I need to change the color of the border from red to another color. I used focus selector in CSS
. is missing from text class and try pointing from input
.
text
input.text:focus { border-color: green; outline: 0; -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6); box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6); }
DEMO