You can use JavaScript code to achieve your goal, please see this tutorial .
$(".myBox").click(function(){ window.location=$(this).find("a").attr("href"); return false; });
and this is an example HTML:
<div class="myBox"> blah blah blah. <a href="http://google.com">link</a></div>
but there is a difficult way to achieve this using CSS code you must insert the anchor tag inside your div tag, and you must apply this property to it,
display:block;
when you do this, it will make the width zone all clickable (but within the height of the attached tag), if you want to cover the entire div area, you must precisely set the height of the attached tag to the height of the div tag, for example:
height:60px;
this will make the whole area clickable, then you can apply text-indent:-9999px to the anchor tag to achieve the goal.
it is really complicated and simple, and it is simply created using CSS code.
here is an example : http://jsfiddle.net/hbirjand/RG8wW/
Hbirjand
source share