Working on a legacy project there has been a class added like so:
.resetClass {
p {
font-size: 1rem;
}
}
Now we have classes on a p
element for instance
.myClass {
font-size: 1rem;
}
It is like this on all elements by the way. Now the problem is that the resetClass takes priority because it is more specific.
How can I make sure that the resetClass is not priority so myClass
styles are used first?
I hope this makes a bit of sense because I cannot seem to find a fix for this.