html - Hover image enlarge using css, in front of other images -
i have table images , have set css enlarge images , display text on hover. i'm having trouble images enlarging in of other images. need hover enlarged image in front of rest.
here's fiddle - http://jsfiddle.net/ef5cx/
html:
<table width="522" border="0" align="center" cellpadding="0" cellspacing="3"> <tr> <td width="179"><div class="imagewrapper1"><a href="http://cloverparklakes6450.com/events_cocktails.php"><img src="http://cloverparklakes6450.com/images/cocktails.jpg" name="cocktails" width="179" height="265" border="0" align="top" id="cocktails" /></a><a href="http://cloverparklakes6450.com/events_cocktails.php" class="cornerlink">august 22 friday night cocktails @ oakbrook cc</a></div></td> <td colspan="2" rowspan="2"><div class="imagewrapper1"><a href="events_gala.php"><img src="http://cloverparklakes6450.com/images/gala.jpg" name="gala" width="331" height="397" border="0" align="top" id="gala" /></a><a href="http://cloverparklakes6450.com/events_gala.php" class="cornerlink">8/23 saturday night gala</a></div></td> <td width="1"> </td> </tr> <tr> <td height="129"><div class="imagewrapper1"><a href="events_golf.php"><img src="http://cloverparklakes6450.com/images/golf.jpg" name="golf" width="179" height="129" border="0" align="top" id="golf" /></a><a href="http://cloverparklakes6450.com/events_golf.php" class="cornerlink">8/23 golf tournament</a></div></td> <td> </td> </tr> </table> <table width="518" border="0" align="center" cellpadding="0" cellspacing="1"> <tr> <td width="293"><div class="imagewrapper1"><a href="http://cloverparklakes6450.com/events_picnic.php"><img src="http://cloverparklakes6450.com/images/picnic.jpg" name="picnic" width="286" height="214" border="0" align="top" id="picnic" /></a><a href="http://cloverparklakes6450.com/events_picnic.php" class="cornerlink">8/24 beach picnic</a></div></td> <td width="222"><div class="imagewrapper1"><a href="http://cloverparklakes6450.com/events_car.php"><img src="http://cloverparklakes6450.com/images/car.jpg" alt="" name="car" width="220" height="214" border="0" align="top" id="car" /></a><a href="http://cloverparklakes6450.com/events_car.php" class="cornerlink">8/24 collector car cruise</a></div></td> </tr> </table>
css:
.imagewrapper1:hover { cursor: pointer; height:auto; width: auto; transform:scale(1.1); -ms-transform:scale(1.1); /* ie 9 */ -moz-transform:scale(1.1); /* firefox */ -webkit-transform:scale(1.1); /* safari , chrome */ -o-transform:scale(1.1); /* opera */ box-shadow: 3px 3px 1px #111111; } .imagewrapper1 { position: relative; width: auto; height: auto; } .imagewrapper1 img { display: block; } .imagewrapper1 .cornerlink { opacity: 0; position: absolute; bottom: 0px; left: 0px; right: 0px; padding: 2px 0px; color: #ffffff; background: #000000; text-decoration: none; text-align: center; -webkit-transition: opacity 500ms; -moz-transition: opacity 500ms; -o-transition: opacity 500ms; transition: opacity 500ms; } .imagewrapper1:hover .cornerlink { opacity: 0.8; }
just give z-index hover.
work.
below;
.imagewrapper1:hover .cornerlink { opacity: 0.8; z-index:10; }
Comments
Post a Comment