-
Notifications
You must be signed in to change notification settings - Fork 22
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
need to control max-width #10
Comments
@joyously I am not quite sure I follow. Please go ahead and submit a pull request. |
I've tried two different approaches, and I don't know which works best. |
Since this script manipulates the width of a div containing an image, the CSS needs to control the max-width. It is very common to use max-width:100% on images so that they scale, but that ruins the effect of this script. So the CSS should have
.slider img {max-width:none}
to make sure it works correctly, regardless of the user's CSS.
The text was updated successfully, but these errors were encountered: