Can an element have two different styles with different colors?
In simpler terms, imagine I have the following HTML code:
<table class='my_table'>
<th class="style1 style2">LastName</th>
...
</table>
and this CSS:
.my_table th.style1 {
background: #aaaaaa;
}
.my_table th.style2 {
background: #bbbbbb;
}
I know I can remove one style using JavaScript under certain conditions. But is it possible to have two conflicting styles where one overrides the other?