June 27, 20206 yr i want to show a green border to the input when be active or visited not black as shown ! that's the code https://codepen.io/Mohamedyehia94/pen/oNbeqWY
June 27, 20206 yr You can add any selector to input elements, here's a few examples. input { border: 1px solid black; } <!-- default --> input:hover {border: 1px solid blue; } input:active {border: 1px solid green; } input:focus {border: 1px solid yellow; }
Create an account or sign in to comment