Errica
02-03-2007, 12:51 PM
I'd like to have a border appear around the entire cell when the mouse hover over it. The following works but it no longer allows the form within the cell to be clicked/submitted. Is there a workaround?
Also, I just noticed the hover effect doesn't work in IE6. Any idea here?
.target a {
text-decoration: none;
}
.target a:hover {
text-decoration: none;
}
.target a span {
padding: 4px;
border: 1px solid #CCCCCC;
display: block;
}
.target a:hover span {
border: 1px solid #990033;
}
<tr>
<td class="target"><a href="#"><span>
<table border="0" cellpadding="1" cellspacing="2" style="margin-top: 10px; width: 600px">
<tr>
<td rowspan="2" class="_prod_1_image"><a href="<!--#ystore_catalog id=0300 field=image -->" rel="lightbox" title=""><img src="/gfx/products/msds_poster_tn.jpg" alt="" width="69" height="100" border="0"></a></td>
<td rowspan="2" class="_prod_2_tital"><br><b><!--#ystore_catalog id=0300 field=name --></b></td>
<td class="_prod_3_price"><!--#ystore_catalog id=0300 field=price format=html --></td>
<tr>
<td class="_prod_4_order"><form method="post" action="<!--#ystore_order id=0300 -->">
<input type="submit" value="Order">
</form></td>
</tr>
</table>
</span></a></td>
</tr>
Also, I just noticed the hover effect doesn't work in IE6. Any idea here?
.target a {
text-decoration: none;
}
.target a:hover {
text-decoration: none;
}
.target a span {
padding: 4px;
border: 1px solid #CCCCCC;
display: block;
}
.target a:hover span {
border: 1px solid #990033;
}
<tr>
<td class="target"><a href="#"><span>
<table border="0" cellpadding="1" cellspacing="2" style="margin-top: 10px; width: 600px">
<tr>
<td rowspan="2" class="_prod_1_image"><a href="<!--#ystore_catalog id=0300 field=image -->" rel="lightbox" title=""><img src="/gfx/products/msds_poster_tn.jpg" alt="" width="69" height="100" border="0"></a></td>
<td rowspan="2" class="_prod_2_tital"><br><b><!--#ystore_catalog id=0300 field=name --></b></td>
<td class="_prod_3_price"><!--#ystore_catalog id=0300 field=price format=html --></td>
<tr>
<td class="_prod_4_order"><form method="post" action="<!--#ystore_order id=0300 -->">
<input type="submit" value="Order">
</form></td>
</tr>
</table>
</span></a></td>
</tr>