laurenashpole/vue-inner-image-zoom

Css conflict

Opened this issue · 2 comments

Hi,
I have the following rule for responsive images in my main css file :
img {
max-width: 100%;
height: auto;
}

The height property also apply to the zoom image with the class iiz__zoom-img and it causes a strange offset. The zoom image is not center anymore.
If I remove the height : auto, everything work fine but since I need this property, I'm looking for a way to overwrite it in my css but I couldn't find a working solution.
I tried the following but it doesn't seem to work :
.iiz__zoom-img {
height: unset;
}

Do you have any idea?
Thanks

I have the exact same problem. Any ideas on how to solve this?

I need a little more information to look into this further. On the most recent versions of Chrome, Safari, and Firefox the computed value for the height seems to reflect the zoom image's height attribute even with that global image styling. It's possible some other settings are conflicting or other styling is interacting in an odd way.