I am trying to create an HTML input field as shown below:
.
I did this using the following code:
input[type=text] { background: transparent; border: none; border-bottom: 1px solid #000000; padding: 2px 5px; } input[type=text]:focus { border: none; border-bottom: 1px dashed #D9FFA9; }
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <title>JS Bin</title> </head> <body> Name : <input type="text" /> </body> </html>
QUESTION:
Here, when I focus the input field and start typing, a blue frame appears around the input window, as shown in the figure below.
I need to remove this blue frame. How to do it?

source share