Skip to content

Instantly share code, notes, and snippets.

@olafdietsche
Last active August 29, 2015 14:01
Show Gist options
  • Save olafdietsche/838e6fee4d01d7748b59 to your computer and use it in GitHub Desktop.
Save olafdietsche/838e6fee4d01d7748b59 to your computer and use it in GitHub Desktop.
Web: Input field with background image to the right
.valid {
background-image: url(http://lorempixel.com/20/20);
background-repeat: no-repeat;
background-position: right center;
padding-right: 25px;
}
<input class="valid">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment