Hi Azita:
I think I found the problem. The problem with the enlarged image not zooming is due to several "responsive" styles in your CSS pertaining to the "img" selector restricting the dimensions of that image as well. Firstly, modify your initialization code for the zoomer with the line in red:
Code:
$('#image1').addimagezoom({
magnifierpos: 'left',
zoomrange: [3, 3],
magnifiersize: [350,225]
})
This makes the enlarged image 3x the size of the original image. Now if you just did this, you'll notice the distortion in the enlarged image when viewed. That's due to, as mentioned, certain responsive styles in your CSS, namely, style.css:
Code:
@media (min-device-width:800px) {
img { max-width: 100%; }
and tooltip.css:
Code:
/* Tablet Landscape */
@media screen and (max-width: 1060px) {
img { max-width: 100%; }
html { font-size:100%; }
#primary { width:67%; }
#secondary { width:30%; margin-left:3%;}
}
/* Tabled Portrait */
@media screen and (max-width: 768px) {
img { max-width: 100%; }
html { font-size:100%; }
#primary { width:100%; }
#secondary { width:100%; margin:0; border:none; }
}
@media (min-device-width:600px) {
img[data-src-600px] {
content: attr(data-src-600px, url);
}
}
@media (min-device-width:800px) {
img { max-width: 100%; }
html { font-size:100%; }
img[data-src-800px] {
content: attr(data-src-800px, url);
}
}
.video-container {
position: relative;
padding-bottom: 56.25%;
padding-top: 30px;
height: 0;
overflow: hidden;
}
.video-container iframe,
.video-container object,
.video-container embed {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
You'll want to modify the img selectors that modify images' widths of your page indiscriminately to leave out the enlarged image's.
Bookmarks