What is the best method to embed a link within a link
Posted: Fri Nov 17, 2006 4:14 pm
I'm generating a search results list where the client wants the whole row to highlight on hover and be clickable as well as have a 'buy now' link in the same row - ie embed a link within a link.
Here is one method I've tried:
Another:
The example class contains the hover code, etc.
I'm only getting partial success.
Is there a better/different way?
Thx in advance.
Here is one method I've tried:
Code: Select all
<a href='#' class='example'>
<div id="pic"><img src='../pic01.jpg'></div>
<div id="rseltitle">Test Title</div>
<div id="rselbox36">£3.99</div>
<div id="rselbox46"><a href="#">Test Link</a></div>
</a>Code: Select all
<a href='#' class='example'>
<table><tr>
<td><img src='../pic02.jpg'></td>
<td>Test Title2</td>
<td>£4.99</td>
<td><a href="#">Test Link</a></td>
</tr></table>
</a>I'm only getting partial success.
Is there a better/different way?
Thx in advance.