How to remove the focus effect | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to remove the focus effect

Hello friends. Normally when one creates an <input> element and when clicking inside it I understand that it is doing a focus effect and by default the edge of the input changes color. I want to know how to eliminate this effect. In the CSS I am doing the following: input: focus {border: none; } but it does not work. Can anyone tell me how I do?

16th Jul 2020, 1:47 AM
Holger Edud Angulo Castillo
Holger Edud Angulo Castillo - avatar
2 Answers
+ 8
Is this what you are looking for? <code> Use "outline: none;" if so.
16th Jul 2020, 2:09 AM
Kevin ★
+ 2
Hwaw gracias. La verdad yo no conocía la propiedad outline. Hoy he aprendido algo nuevo 👍thanks my friend
16th Jul 2020, 2:56 AM
Holger Edud Angulo Castillo
Holger Edud Angulo Castillo - avatar