score:0

wrap the email address field and password field inside a div as below.

<div class="email_wrap">
                    <input type="email" id="icon1" placeholder="enter email address"/>
</div>
<div class="password_wrap">
<input type="password" id="icon2" placeholder="enter password"/>
</div>
    <style>
.email_wrap{width:100%;float:left;position:relative;}
.password_wrap{width:100%;float:left;position:relative;}
.email_wrap::before{content:url(../images/login-mail.png);position:absolute;left:5px;top:5px;}
.password_wrap::before{content:url(../images/login-password.png);position:absolute;left:5px;top:5px;}
</style>

note: adjust the top and left css of the before element based on your design to suit your design.


Related Query

More Query from same tag