I'm trying to add a "shade" that appears over images when the user hovers over them, but I can't seem to get it to work. When I run what I have currently, the shade fills the whole posts area, not just the one like I want it to.
Can anyone help? Thanks.
Here's the HTML that loads the post and the css for the .shade div I have set up:
.shade {
  background-color: rgba(000, 000, 000, 0);
  transition: background-color .7s linear;
  -webkit-transition: background-color .7s linear;
  -o-transition: background-color .7s linear;
  -moz-transition: background-color .7s linear;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}
div.entry:hover div.shade {
  background-color: rgba(000, 000, 000, .5);
}
<div <?php post_class() ?> class="post" id="post-<?php the_ID(); ?>">
  <a href="<?php the_permalink() ?>">
    <h2><?php the_title(); ?></h2>
    <div class="entry">
      <?php the_content(); ?>
      <div class="shade"></div>
    </div>
  </a>
</div>
Wow. I just solved this, it was much easier than I thought, although I didn't really do what I meant to. I just had the post div go to 50% opacity on hover.
 
    