Adding icons to input fields
To futher style your page you might wan to add input fields to your page. This code shows how you can do this using only CSS
This example uses icons and changes their color. Look at the previous articles about working with icons for more information.
<style> .nf-input-holder{position: relative;} .nf-input-icon-holder{position: absolute; vertical-align: middle; top: 50%;left: 25px;transform: translate(-50%, -50%); } .nf-input-icon{width: 20px; height: 20px; filter: invert(27%) sepia(18%) saturate(1850%) hue-rotate(139deg) brightness(105%) contrast(87%);} .nf-input{width: 100%; margin-left: auto; margin-right: auto; display: block; padding: 15px; font-size: 18px; margin-top: 15px; background-color: white; border: none; text-align: left; color: #15616D; border-radius: 30px; padding-left: 50px;} </style> <div class="nf-input-holder"> <i class="nf-input-icon-holder"><img class="nf-input-icon" src="icn/envelope.svg"></i> <input class="nf-input" type="text" name="user_email" placeholder="Email"> </div> <div class="nf-input-holder"> <i class="nf-input-icon-holder"><img class="nf-input-icon" src="icn/lock.svg"></i> <input class="nf-input" type="password" name="user_password" placeholder="Password"> </div>