css - Assign two different classes/ID's to attribute:hover -


i'm working on tumblr theme individual posts display link permalink page on hover , post beneath blurs. .entry:hover #permalink , .entry:hover img {-webkitfilter:blur} work both individually, not together. maybe i'm doing css wrong when try assign .entry:hover 2 different attributes. or problem of z-index , position?

can use jquery make "if entry hover shows permalink -> blur entry img" ?

jsfiddle demo

css:

body{ position:absolute; } .entry { float:left; width:100%; } .entry #permalink { position:absolute; width:100%; opacity:0.0;  } .entry:hover #permalink {     opacity: 1;     text-align:center;     } .entry img {     -webkit-filter: blur(0px); } .entry:hover img {     -webkit-filter: blur(5px); } 

html:

<div class="entry"> <div id="permalink"><a href="#">post number x</a></div> <img src="#" alt="#" width="500px"/> </div> 

just add z-index:100; or else bigger .entry:hover #permalink, here working demo


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -