How to redefine the border: no?

I work with some absolutely terrible third-party software and need to overwrite their CSS styles with an external CSS file.

They set border: nonefor all form fields, but I would like the input fields to use the style of the browser styles.

How can I redefine border: noneso that the form fields are styled as if a property were not set border?

+5
source share
4 answers

Set exceptions as border: inherit.

This will override the last border rule.

+2
source
0

, inline:

input {
    border: 1px solid #999 !important;
}
-1

, CSS , . , - CSS , " "; , ( , ).

, :

input { border: solid 1px #ddd; border-top-color: #aaa; padding: 2px; }

( !important), .

-1

All Articles