on-internet
← Community

bootstrap icon for username and password

Stack Overflow ·

I am designing login page. Here I am adding icons for username and password, when I add icons along with icons someother icons also adding how to resolve this . Here is my code. <div class="left-inner-addon "> <i class="icon-user"></i> <input type="text" placeholder="User Name" name='j_username' > </div></div> and css is as follow, <style type="text/css"> .left-inner-addon { position: relative; } .left-inner-addon input { padding-left: 30px; } .left-inner-addon i { position: absolute; padding: 10px 12px; pointer-events: none; } </style> and I dont have reputation to post pic of the login form

Comments

Sign in or sign up to comment and upvote.

No comments yet.