coral-studio Posted June 9, 2023 Posted June 9, 2023 (edited) I'm trying to get the captions to look cleaner on this full bleed slideshow gallery. Pictured is a photo of my homepage (top pic) and an inspiration pic of what I would like it to look like. I want the white background to be completely left-aligned on the screen, like the inspiration photo shows. I like the vertical padding how it is, but if possible I want the horizontal padding to adjust with the length of the text as the photos switch. I'm not a coding expert; I've been googling and watching tutorials to get it as it is. Here's the CSS that I'm using for it as of right now. /*Homepage gallery caption*/ .gallery-caption p{color: black!important} .gallery-caption {background-color: rgba(255, 255, 255, .55)} .gallery-caption p{font-size:1.4rem!important} .gallery-caption p{font-family: futura-pt! important} .gallery-caption {margin-top: -10%} .gallery-caption.gallery-caption-fullscreen-slideshow { top: 104%; left: -40%; text-align: center; max-height: 40px } /*Get rid of old caption space*/ .homepage .gallery-fullscreen-slideshow[data-show-captions="true"][data-width="full-bleed"] { margin-bottom: 0px !important; } Any help or alternate ideas are welcome! I'm using Squarespace 7.1. Edited June 9, 2023 by coral-studio
tuanphan Posted June 11, 2023 Posted June 11, 2023 What is your site url? 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!)
coral-studio Posted June 12, 2023 Author Posted June 12, 2023 @tuanphan mango-silver-f3xz.squarespace.com
tuanphan Posted June 13, 2023 Posted June 13, 2023 Add to Design > Custom CSS figcaption.gallery-caption.gallery-caption-fullscreen-slideshow { left: 0 !important; text-align: left; margin-left: 0 !important; padding-left: 20px; max-width: 400px; } 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!)
coral-studio Posted June 15, 2023 Author Posted June 15, 2023 Thanks! This worked to get the caption box aligned to the left. Would there be a way to make the caption box width adjust based on the length of the text every time it changes?
tuanphan Posted June 20, 2023 Posted June 20, 2023 On 6/16/2023 at 3:06 AM, coral-studio said: Thanks! This worked to get the caption box aligned to the left. Would there be a way to make the caption box width adjust based on the length of the text every time it changes? Try this code body.homepage figcaption.gallery-caption.gallery-caption-fullscreen-slideshow, body.homepage figcaption.gallery-caption.gallery-caption-fullscreen-slideshow * { width: auto !important; display: inline-block !important; position: relative !important; top: 90% !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!)
coral-studio Posted June 20, 2023 Author Posted June 20, 2023 It looks like the width is adjusting, but the text has disappeared once I added this new code. I think maybe something in one of the other codes I'm using messed up the alignment, but not sure. Do you see what the issue could be? Here are all the codes I'm using to adjust the home page captions: /*Homepage gallery caption*/ .gallery-caption p{color: black!important} .gallery-caption {background-color: rgba(255, 255, 255, .55)} .gallery-caption p{font-size:1.4rem!important} .gallery-caption p{font-family: futura-pt! important} .gallery-caption {margin-top: -10%} .gallery-caption.gallery-caption-fullscreen-slideshow { top: 104%; left: -40%; text-align: center; max-height: 40px } /*home caption left align*/ figcaption.gallery-caption.gallery-caption-fullscreen-slideshow { left: 0 !important; text-align: center; margin-left: 0 !important; padding-left: 20px; max-width: 400px; } /*home caption fit width*/ body.homepage figcaption.gallery-caption.gallery-caption-fullscreen-slideshow, body.homepage figcaption.gallery-caption.gallery-caption-fullscreen-slideshow * { width: auto !important; display: inline-block !important; position: relative !important; top: 90% !important; } /*Get rid of old home caption space*/ .homepage .gallery-fullscreen-slideshow[data-show-captions="true"][data-width="full-bleed"] { margin-bottom: 0px !important; }
tuanphan Posted June 22, 2023 Posted June 22, 2023 Can you disable gallery autoscroll? We can check code easier 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!)
Solution tuanphan Posted June 23, 2023 Solution Posted June 23, 2023 Change this code body.homepage figcaption.gallery-caption.gallery-caption-fullscreen-slideshow, body.homepage figcaption.gallery-caption.gallery-caption-fullscreen-slideshow * { width: auto !important; display: inline-block !important; position: relative !important; top: 90% !important; } to this body.homepage figcaption.gallery-caption.gallery-caption-fullscreen-slideshow, body.homepage figcaption.gallery-caption.gallery-caption-fullscreen-slideshow *:not(.gallery-caption-wrapper):not(p) { width: auto !important; display: inline-block !important; position: relative !important; top: 90% !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!)
coral-studio Posted June 27, 2023 Author Posted June 27, 2023 This worked! Thank you, @tuanphan!! tuanphan 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment