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
You are using .element text:focus which selects nothing because there is no element like text in .element. Instead of this you have to use .element.text:focus for eg.
.element text:focus
.element
.element.text:focus
.element.text:focus{ ... }