In CSS, I was wondering if there was some way how one could use the properties given to an element via a class that would overwrite those given from a class. For example, it would look something like this:
.div_class {
font-family: Arial;
color: white;
}
.special_class {
font-family: "Times New Roman";
color: green;
}
And the HTML would look something like this:
<div class="div_class">
<h3>Normal</h3>
<h3 class="special_class">Special </h3>
<h3>Normal</h3>
</div>
Apologies if I've made an error in my code, but this is the basic gist. Thanks!
.div_class .special_class {}to overwrite, please try to avoind!important- it can get your code messy