A
A
applecode2018-03-05 10:34:20
css
applecode, 2018-03-05 10:34:20

How to remove default browser borders for invalid form?

It is necessary to remove the borders prescribed in the browser itself with an invalid form. Tried pseudo class invalid doesn't work. Moreover, different browsers have different boundaries. In chrome there is a yellow filled border, and in mozzilla there is just a red border

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stepan Krapivin, 2018-03-05
@applecode

Here's what they say on the Mozilla documentation site

:invalid {
  box-shadow: none;
}

:-moz-submit-invalid {
  box-shadow: none;
}

:-moz-ui-invalid {
  box-shadow:none;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question