I am editing a CSS file, I want to cancel the value of that property, but I do not want to set a new value.
I have the file A, that I can not edit .
.menu a {
padding: 20x;
}
So now I create another style sheet, but if I put
.menu a {
padding: 0;
}
It does not look like I want. One option is to place another value, such as padding: 5px;
, but I'm looking for an alternative. When I uncheck that property in the Safari inspector, things stay as I hope.
Example:
.caja {
background-color: indianred;
padding: 40px;
font-size: 1.7em;
color: white;
}
.caja {
padding: 20px;
}
/* solo cambiar las líneas de abajo */
/* no vale padding: 40px; */
.caja {
}
<div class="caja">
Quiero que el padding vuelva a ser 40 anulando el <code>padding: 20px;</code>
</div>
How can I disable the padding
property from another style sheet?
In this example the effect is achieved using different classes and elements, using
unset
. It may not be possible with the conditions I intend.