How to make a entire div a hyperlink
asp.net, css, html
Solution
you have to add a `display:block` on `a` tag. by default `a` is inline element so by giving a `display:block` it will behave as a block level element.
Check the DEMO.
a{display:block;}
Problem
I have a div which contains back-ground colour and other styles, inside there is some text that contains hyper link. How would I add a hyper link to entire div so that when a person clicks on a selected div then whatever is attached to the id get executed: ``` <div class="className" style="background-color:green;" id="IDName" > <a href="#" style="font-weight: bolder;"> Your Text goes here </a> </div> ```