Reputation: 31
I'm trying to style a link inside of a table, but I've never actually dealt with overriding inline CSS before.
Code
<td class="playertableData">
<a href="" content="ajax#/ffl/format/pvopop/summary?leagueId=409279&positionId=4&playerId=70419&seasonId=2017" class="flexpop" instance="_ppc" style="text-decoration: none; cursor: pointer;">
<span style="color:green">26th</span>
</a>
</td>
and there is another just like it but with color: red
. I looked at some of the other topics on overriding but what I saw didn't cover a situation like this, at least not as I read it. Thanks in advance.
(For reference, it looks like this.)
Upvotes: 1
Views: 390
Reputation: 6699
in css
!important changes the rules for override priority of css cascades.
.playertableData > a > span{color:red!important;}
in jQuery
$(".playertableData > a > span").css({ color: 'red' });
Upvotes: 1