css selectors - Overwriting holder behavior with CSS when clicking on a link inside holder -
i have gallery, , each item has .item class. inside .item there link remove it:
<div class="item">title of item <a href="#" class="remove">remove</a></div>
when press on .item, displays red border
div.item:active { border: 1px solid red; }
now, problem not want .item display red border if press on .remove link inside. how can solve issue? feasible?
div.item:active a.remove:active { ??? }
thanks!
jquery solves problem. use
$('a.remove').click(function(){ $('div').removeclass("classname"); });
read this reference
Comments
Post a Comment