MDN self-hosted library · e01.org

Styling web forms

Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.

css
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
}
css
input,
textarea,
select,
button {
  width: 150px;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}