I'm kicking myself here as I've done this plenty of times before, but for some reason my code is not working and I can't workout why. I've been staring at it for a while now so that probably doesn't help. Anyway I'm trying to do a CSS on hover. So when you hover over a div with it displays another div.
HTML
<div class="pressListItem">
<img src="" width="" height="">
<h3>July 2013</h3>
</div>
<div class="pressItemHover">
<p>This is come more content, lalala here is a little snippet</p>
<span></span>
<span>Read more</span>
</div>
CSS
I'm using the opacity transition as I want it fade in.
.pressItemHover{
opacity: 0;
transition: opacity 0.5s linear 0s;
visibility: hidden;
}
.pressListItem:hover .pressItemHover{
opacity: 1;
visibility: visible;
}
.pressListItem{
width: 200px;
float: left;
height: 200px;
margin-right:12px;
text-align: center;
border: solid 1px #e4e4e4;
}
If anyone could point out what I'm doing wrong it would be much appreciated!