Back to Code Bytes
1 min read
Remove Button CSS

Description

This code byte provides a lightweight CSS reset for <button> elements, removing background, border, padding, and other default styles so you can apply your own design from scratch.

Code Byte

button {
  background-color: transparent;
  border: none;
  margin: 0;
  padding: 0;
  text-align: inherit;
  font: inherit;
  border-radius: 0;
  appearance: none;
}

Example

Button Element: