set max height for gallery container
See original GitHub issueI have many photos and they are in different orientations (some are in horizontal and some are in vertical) in different gallery sets (all photos in gallery almost always has a horizontal or a vertical orientation). Wide images is almost look fine with default settings but tall images look awful
I can’t understand how to set max-height for gallery container.
.image-gallery {max-height: 400px}
do nothing at all.
If I set .image-gallery {width: 500px}
it will affect to fullscreen mode and made it useless and width property affecting wide photos which become very tiny.
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
max-height - CSS: Cascading Style Sheets - MDN Web Docs
The max-height CSS property sets the maximum height of an element. It prevents the used value of the height property from becoming larger ......
Read more >Image with max-width, and set height - Stack Overflow
Using a container with a max-width allow us to have the right width, then using height on the image allow the image to...
Read more >CSS max-height property - W3Schools
Definition and Usage. The max-height property defines the maximum height of an element. If the content is larger than the maximum height, it...
Read more >set autoheight to gallery control - Power Platform Community
There is no auto-height for the gallery itself - the height of the gallery control is fixed. However, you can use what we...
Read more >Max-Height - Tailwind CSS
Set the maximum height of an element using the max-h-full or max-h-screen utilities. <div class="h-24 ..."> ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think i solved a similar problem with
You shouldn’t need that. You can nest css classes.