Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Css conflict #41

Open
jdessain opened this issue Feb 17, 2022 · 2 comments
Open

Css conflict #41

jdessain opened this issue Feb 17, 2022 · 2 comments

Comments

@jdessain
Copy link

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

@szabizs
Copy link

szabizs commented Aug 12, 2022

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

@laurenashpole
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants