javascript - Make a whole div clickable -


I have a link inside a div and I need to make the whole clickable ... many on the internet Tutorials are not available for any of them ...

If you are saying After clicking on the navigation that you want the whole Div, you can either wrap it with an anchor () tag, which does not conform to the standards, or contained a CSS style Anchor adds to the tag, so that it can make the size of the divi, which corresponds to the standards. I will use 250px to 250px in this example:

  & lt; Div id = "container" & gt; & Lt; A href = "" style = "display: block; width: 250px; height: 250px;" & gt; Link & lt; / A & gt; & Lt; / Div & gt;  

Comments