html - IE9 adjacent image overlaps/appears in the pop-up image -



html - IE9 adjacent image overlaps/appears in the pop-up image -

i using css hover create pop-up image when smaller image moused over. works fine in firefox , chrome in ie9 adjacent(side) image appears overlap pop-up image.

thank you!

css:

.thumbnail{ position: relative; z-index: 0; float: left; clear: both; text-decoration: none; } .thumbnail:hover{ background-color: transparent; z-index: 50; text-decoration: none; } .thumbnail span{ position: absolute; background-color: white; padding: 0px; left: -1000px; border: 1px ridge gray; visibility: hidden; text-decoration: none; text-align:center; } .bdecor{ background-color:#cd2626; text-align: center; text-decoration: none; font-size: 16px; font-family:calibri; color: white; padding-bottom: 1px; } /*css enlarged image*/ .thumbnail span img{ border-width: 0; padding: 0px; width: 180px; height: 200px; text-decoration: none; } .thumbnail:hover span{ visibility: visible; top: 0; left: 0px; /*position enlarged image should offset horizontally */ text-decoration: none; }

you need add together z-index higher original image enlarged image hover. please utilize code below:

.thumbnail:hover span{ visibility: visible; z-index: 100; top: 0; left: 0px; /*position enlarged image should offset horizontally */ text-decoration: none; }

having seen http://jsfiddle.net/abhatt/uujns/8/ in comments, add:

ignoring css moment have bad html. have set <a> within <a> , didn't close off sec 1 either. not closing off inconsequential invalid set <a> within <a>. need alter that. cannot have <input> within <a> tag either.

once alter issue resolved.

html css

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -