monicaherndon Posted March 14 Share Posted March 14 Site URL: https://www.monicaherndon.com/sportsgallery Hello, I added CSS to my site to show descriptions on each photo in the gallery lightbox. Now the images are distorted when viewed in the lightbox. How can I fix that? This is the CSS code I currently have on my site: .collection-type-gallery #slideshowWrapper .image-description { text-align: center; width: 100%; padding: 10px 0px 0; background: #fff; display: block; position: relative; bottom: 0px; margin-top: 0px; margin-bottom: 25px; } .collection-type-gallery #slideshowWrapper .sqs-gallery-design-stacked-slide img { max-height: 90%; margin: 0 auto !important; margin-left: auto; margin-right: auto; top: 0 !important; } .collection-type-gallery #slideshowWrapper .sqs-gallery-design-stacked-slide .sqs-video-wrapper.video-fit { position: sticky; max-height: 100%; width: 800px !important; margin: auto; top: 50%; left: 50%; transform: translate(0%, 0%); right: auto !important; } .collection-type-gallery #slideshowWrapper .sqs-gallery-design-stacked-slide .sqs-video-wrapper.video-fit .intrinsic-inner { text-align: center; } Thank you! Link to comment
tuanphan Posted March 16 Share Posted March 16 Try this CSS code under .collection-type-gallery #slideshowWrapper .sqs-gallery-design-stacked-slide img { width: auto !important; left: 50% !important; transform: translateX(-50%) !important; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
monicaherndon Posted March 17 Author Share Posted March 17 Thanks @tuanphan, the images are no longer distorted but the descriptions are gone. Link to comment
tuanphan Posted March 18 Share Posted March 18 9 hours ago, monicaherndon said: Thanks @tuanphan, the images are no longer distorted but the descriptions are gone. You can remove my code, I will test again Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Solution tuanphan Posted March 19 Solution Share Posted March 19 Try this new code /* adjust something */ .collection-type-gallery #slideshowWrapper .sqs-gallery-design-stacked-slide img { width: auto !important; left: 50% !important; transform: translateX(-50%) !important; } .collection-type-gallery #slideshowWrapper .image-description { text-align: center; width: 100%; padding: 10px 0px 0; background: #fff; display: block; position: relative; bottom: 0px; margin-top: 0px; margin-bottom: 25px; } .collection-type-gallery #slideshowWrapper .sqs-gallery-design-stacked-slide img { max-height: 90%; margin: 0 auto !important; margin-left: auto; margin-right: auto; top: 0 !important; } .collection-type-gallery #slideshowWrapper .sqs-gallery-design-stacked-slide .sqs-video-wrapper.video-fit { position: sticky; max-height: 100%; width: 800px !important; margin: auto; top: 50%; left: 50%; transform: translate(0%, 0%); right: auto !important; } .collection-type-gallery #slideshowWrapper .sqs-gallery-design-stacked-slide .sqs-video-wrapper.video-fit .intrinsic-inner { text-align: center; } monicaherndon 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment