I have a div as follows:
<div class="slide_items">
<div class="slide_item"><a href="/url"><img src="image"/></a></div>
<div class="slide_title"><a href="/url">title</a></div>
</div>
What i want to do is, instead of having URL in each item in slide_items div. I want user to click on <div class="slide_items">. I want the slide_items to be clickable as the div itself, rather than putting a href in every inner div.
How can i do this?
The proper way would be to use a single link (but change the inner elements to
spanfor validness)And make sure that they are treated as
blockelements from the cssIf you have to go the div way, then use
and add a script (since you use jquery)