Skip to content

Instantly share code, notes, and snippets.

@conversionlabshares
Created November 11, 2016 10:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save conversionlabshares/d8bdc33b88fd4edd298431313a1ecac8 to your computer and use it in GitHub Desktop.
Save conversionlabshares/d8bdc33b88fd4edd298431313a1ecac8 to your computer and use it in GitHub Desktop.
CSS style to place icons inside form fields
<style>
input#email {
background: white url(http://conversionlab.no/assets/email-light.png) no-repeat 18px;
text-indent: 35px;
}
input#email:focus {
background: white url(http://conversionlab.no/assets/email-medium.png) no-repeat 18px;
text-indent: 35px;
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment