Created
November 11, 2016 10:19
-
-
Save conversionlabshares/d8bdc33b88fd4edd298431313a1ecac8 to your computer and use it in GitHub Desktop.
CSS style to place icons inside form fields
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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