Skip to content

Instantly share code, notes, and snippets.

@irvingvjuarez
Last active August 10, 2021 16:36
Show Gist options
  • Save irvingvjuarez/c71cd3e60e963df64184f6865ec9fd65 to your computer and use it in GitHub Desktop.
Save irvingvjuarez/c71cd3e60e963df64184f6865ec9fd65 to your computer and use it in GitHub Desktop.
The code to reset a button's styles in css
/* Copy and paste this code into your main css file and add the class 'resetButton' to any button you want to reset */
/* Afterwards, over write new css code to the button */
.resetButton{
background: transparent;
box-shadow: 0px 0px 0px transparent;
border: 0px solid transparent;
text-shadow: 0px 0px 0px transparent;
}
.resetButton:hover {
background: transparent;
box-shadow: 0px 0px 0px transparent;
border: 0px solid transparent;
text-shadow: 0px 0px 0px transparent;
}
.resetButton:active {
outline: none;
border: none;
}
.resetButton:focus {
outline: 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment