Here’s what I’m trying to accomplish…
div1 needs a bg image
div2 needs to be transparent so we see the div1 bg image
div2 also needs to display an image when a:hover is satisfied
Here’s what I tried and it only seems to work in IE…
———- HTM ———-
<body>
<div id=”div1″>
<div id=”div2″>
<a href=”link.htm” title=”Link #1″><img alt=”Blank spacer image” src=”img-blank.gif” title=”Blank spacer image” /><p>Visit the site…</p></a>
</div>
</div>
———- CSS ———-
#div1 {
background: transparent url(“img-visible.gif”) no-repeat 0% 0%;
height: 239px;
margin: 0 auto;
min-height: 239px;
min-width: 585px;
padding: 0;
text-align: center;
width: 585px;
}
#div2 {
background-color: transparent;
height: 239px;
margin: 0;
min-height: 239px;
min-width: 585px;
padding: 0;
text-align: center;
width: 585px;
}
#div2 a,
#div2 a:link,
#div2 a:visited {
background-color: transparent;
margin: 0;
padding: 0;
text-align: center;
}
#div2 a:hover {
background: transparent url(“img-hover.gif”) no-repeat 0% 0%;
margin: 0;
padding: 0;
text-align: center;
Am I missing something?
Thanx.