DEV Community

Gabriel Laroche
Gabriel Laroche

Posted on • Updated on

Tip #2 : Reset a button's style

This series is about all the neat little HTML/CSS/JS tricks I found and keep finding. Most of these are things that initially took me quite a long time to find or figure out and some are just useful tricks that I use in my day to day.

This tip is not something that I struggled with on the past, it's more of something that I use often and provides a clean slate to build awesome buttons.

button {
  padding: 0;
  background: none;
  border-radius: 0;
  border: none;
  cursor: pointer;
}
Enter fullscreen mode Exit fullscreen mode

That's it :)
Have fun making amazing buttons!

Discussion (0)