Basically I have two external css in my page.
The first Main.css contains all style rules but I don’t have access to it, and hence I cannot modify it. I have access to a second file Template.css , so I need to override the Main.css‘s values in template.css.
This is easy for which I have to change the value, but how do I remove a property entirely?
Like say a class .c1 has height: 40px;, how do I get rid of this height property?
You have to reset each individual property back to its default value. It’s not great, but it’s the only way, given the information you’ve given us.
In your example, you would do:
You should search for each property here:
https://developer.mozilla.org/en-US/docs/Web/CSS/Reference
For example,
height:Another example,
max-height:In 2017, there is now another way, the
unsetkeyword:Some documentation: https://developer.mozilla.org/en-US/docs/Web/CSS/unset
Browser support is good: http://caniuse.com/css-unset-value