Skip to content

Instantly share code, notes, and snippets.

@beachcomber
Last active March 27, 2019 09:35
Show Gist options
  • Save beachcomber/af1855f8b82825d2761361b7e6fb7d62 to your computer and use it in GitHub Desktop.
Save beachcomber/af1855f8b82825d2761361b7e6fb7d62 to your computer and use it in GitHub Desktop.
Remove the X from input type=search
<input type="search">
/* this will clear the 'X' from Internet Explorer & Chrome*/
input[type=search]::-ms-clear,
input[type=search]::-ms-reveal,
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
display: none;
width : 0;
height: 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment