I'm having a bit of trouble making the whole div clickable. Right now I have an image and when you hover over it another div slides up with information. I want to make that whole div clickable. Check the JsFiddle for example
Here is what I have so far:
//html
<div class="col-sm-4 peaceful">
<div class="pre-inner">
<img src="http://lorempixel.com/304/188/">
<a href="http://www.google.com">
<div class="pre-info">
<h4>See our activity philosophy</h4>
<a class="btn btn-success" href="http://www.google.com">Click Here </a>
</div>
</a>
</div>
</div>
//css
.pre-inner {
position: relative;
max-width: 300px;
overflow: hidden;
margin: 0px auto 0px;
}
.pre-info {
position: absolute;
padding-top: 10px;
padding-left: 20px;
padding-right: 20px;
padding-bottom: 20px;
bottom: -187px;
transition: all 0.5s ease;
background-color: rgba(57, 68, 97, 0.65);
left: 0;
right: 0;
}
.pre-inner:hover .pre-info {
background-color: rgba(57, 68, 97, 0.65);
bottom: 0;
height: 100%;
width: 100%;
color: #fff;
}
I tried moving the a tag around but that didn't work, also tried giving it a fixed height and width.
I already created a JsFiddle: http://jsfiddle.net/52VtD/13932/