Yes, you were right. Thanks.
I'm curious, though. Exactly the same code was repeated for each thumbnail so why didn't this problem show up with the other ones? By the way, I added the <br> to all the sections before I copied the code below. Nothing else was changed.
My html code:
HTML Code:
<div id="crispndeliscious" class="pizza"> <a href="images/Pizza1Large.htm"><img class="thumbnail" src="images/Pizza1Small.jpg"
alt="Ebony and Ivory Pizza" width="100" height="100" /><span><img
src="images/Pizza1Large.jpg" alt="Rocky Road Pizza Ingredients" width="400"
height="400"/></span><br>Crisp and Deliscious Pizza</a></div>
My CSS code:
Code CSS:
.pizza:hover, #doityourself {background-color: transparent;
z-index: 50;}
.pizza span, #doityourself span{ /*CSS for enlarged image*/
position: absolute;
left: -1000px;
visibility: hidden;
text-decoration: none;}
.pizza span img, #doityourself span img{ /*CSS for enlarged image*/
border: 2px solid #4A2E00;}
.pizza:hover span{ /*CSS for enlarged image on hover*/
visibility: visible;
top: 0;
left: 60px; /*position where enlarged image should offset horizontally */}
Bookmarks