DEV Community


Tip #2 : Reset a button's style

Gabriel Laroche (he/they)
I'm a passionate front-end Web developer and I love building stuff 😀👨🏻‍💻
Updated on ・1 min read

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)

Forem Open with the Forem app