-
Notifications
You must be signed in to change notification settings - Fork 89
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
Max height #15
Comments
I need to know how can I set max height like the max-width property? Also is it possible to fix height and width of library? |
I mean fix height and width for the library not for thumbnails, Like in sales sites it has always same size and width |
I believe you want the viewer itself to always have a fixed height, instead of automatically adjusting based on the image size currently being viewed? The easiest (albeit a bit hackish) way to do that is to either modify smoothproducts.css or write your own css script that overwrites the sp-large class. For instance, in smoothproducts.css on line 77 add a height to sp-large:
This will make the main image space exactly 500 px tall. By default, all images that are too tall will be cut off, but if you wanted to change how the overflow worked, just adjust that overflow property and make it important (ex: |
Hello, Thank's for this nice and simple library.
I need to know how can I set max height like the max-width property ?
Also is it possible to fix height and width of library ?
The text was updated successfully, but these errors were encountered: