Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Use border to offset the icon (background image) from the edge.
input[type="search"] {
background: url("../img/search.svg") no-repeat right center;
border-right: 8px solid transparent; //Hack to offset background icon
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.