html - Make the whole div clickable instead of the links inside of it -


So I'm creating some grids to show the products and instead of the hyperlink, I would like to make the whole tag tag clickable Inside.

What would be the best and easiest way to do this? I have found some complex solutions that I am not using because I have many plans, I want to be clickable.

Any suggestions are very welcome!

You can make the whole divisible clickable rather than just content in it. Just keep in such a way:

  & lt; A href = "http://www.google.com" & gt; & Lt; Div id = "mydiv" & gt; Blah blah & lt; / Div & gt; & Lt; / A & gt;  

That's it. Here is JS Friedal:


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -