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

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -