
How to added the inside of Text Box in fa-fa eye Con.

1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Naimish MakwanaRank #324 · 7.7K reputationPosted Oct 17, 2023, 7:14 AM EDT
Try below CSS
.password-input { padding-right: 30px; /* Space for the icon on the right */ } .password-input::after { content: "\f06e"; /* Unicode for the Font Awesome eye icon (fa-eye) */ font-family: 'FontAwesome'; position: absolute; right: 10px; /* Adjust this value to position the icon as needed */ top: 50%; transform: translateY(-50%); cursor: pointer; } .password-input[type="text"]::after { content: "\f070"; /* Unicode for the Font Awesome eye-slash icon (fa-eye-slash) for showing/hiding password */ }Thanks