Is there a way to change the *** or the ••• of the password field in html5?? And can CSS fix this?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is there a way to change the *** or the ••• of the password field in html5?? And can CSS fix this??

HTML CSS WebDesign Forms

6th Mar 2020, 4:33 PM
AbdErrazak Kenniche
AbdErrazak Kenniche - avatar
4 Answers
+ 3
The short answer is no or not really. The masking character is built into the browser's behavior. You can turn the mask on and off if you wish. Your other options to resolve the issue would be to use a regular text box and then create your own masking function etc using javascript and css. This is typically frowned upon as you will be losing the browser's built in security for the password type text box. Another option would be to create a new font type replacing the dot and asterisk characters within the font and then assigning that font to the password field.
6th Mar 2020, 5:17 PM
ChaoticDawg
ChaoticDawg - avatar
+ 1
No its not possible, if you really want to do this, then you have to create your own font then use it in your input [type=pass] field as font-family.
6th Mar 2020, 5:43 PM
Akbar Ali Quazi
Akbar Ali Quazi - avatar
0
How can i create that font then??
6th Mar 2020, 6:20 PM
AbdErrazak Kenniche
AbdErrazak Kenniche - avatar
0
Google it, how to edit or create vector for custom fonts, you no need to create all the characters, just create that specific character which you want to use in password mask.
6th Mar 2020, 6:22 PM
Akbar Ali Quazi
Akbar Ali Quazi - avatar