I would like to make both the background image as well as the contents in it clickable. I am not sure how to implement it…
The image:

I want both image as well as the contents to be clickable.
The html portion:
<div class = "reportslistitem">
<a href="[[ url ]]"
target=="_blank">
[[ startdate ]] -
[[ enddate ]]
</a>
</div>
The css portion:
.reportslistitem{
width:120px;
height:140px;
display:block;
float: right;
background:url('../images/Report-icon-without-text.png');
}
a{
font: bold 12px 'Thin2Regular';
text-decoration: none;
color: rgb(0,0,0);
padding: 10px 15px;
position: relative;
text-align: center;
display:block;
padding: 0px;
position:relative;
top:25px;
}
How do i change it? Need some guidance…
If you use HTML5 it is now valid to wrap whole sections with anchor tags so it would be
CSS should be something like