The task is to make a table - of type product-price. When hovering over a cell, in addition to the link on the side, a label should appear. In this case, the link should be not only the word, but the cell itself) Without a table, everything works) What am I doing wrong ??

td a { width: 100%; } .wp-450 { visibility: hidden; padding-right: 5px; } .wp-450:hover { visibility: visible; padding-right: 5px; } 
 <table border="0" width="120%"> <tr> <td width="50%"><span style="font-size: 50px"><a href="..." style="color: #000"><img class="wp-450" src="ссылка на фото метки" width="10" height="44" />товар</a></span></td> </tr> <table> 

    1 answer 1

    You have used the wrong selector. If you need an image to hover over the link, install hover directly on it, and not on the picture.

     td a { width: 100%; } .wp-450 { visibility: hidden; padding-right: 5px; } td a:hover .wp-450 { visibility: visible; padding-right: 5px; } 
     <table border="0" width="120%"> <tr> <td width="50%"><span style="font-size: 50px"><a href="..." style="color: #000"><img class="wp-450" src="ссылка на фото метки" width="10" height="44" />товар</a></span></td> </tr> <table> 

    • Brilliant! You saved me))) - N.El