My website includes an unordered list, with 3 < li > items within it. Each of these < li > items contain an image and 3 lines of text. I want this entire box to be clickable -- including the contents, so I used the following code to create a transpartent div "in front" of the < li >, with a link included in the div.
Here is my site.
The individual < li > code is:
<img src="http://www.nowhouseproject.com/images/photos/imgDemoHouse.jpg" class="houseImage"/>
<div class="titlebox">Demo Title</div>
<div class="boxlink"><a class="divLink" href="http://www.google.com"></a></div>
As you can see, boxlink has a class of "divLink". The CSS code for this element is below. It works perfectly in Internet Explorer at SOME screen sizes, but when viewed at smaller resolutions, or in Chrome, the div doesn't line up perfectly with the < li > item behind it. You can tell by hovering anywhere within the greenboxes, the option to click only appears part way down the box. What's with this inconsistency??? How to fix?
Here is the CSS code:
All relevant CSS code is found in the top section of the .html file. Thank you so much for any help!