Oddish Posted April 18 Posted April 18 Hi, is it possible for the caption/title of gallery images to sit on top of the image in a grid:simple layout? Ideally, it would sit bottom right hand corner of the image (with some margin) and with a coloured background behind the title text so its easy to read. Any help with custom code would be appreciated!
Beyondspace Posted April 18 Posted April 18 6 hours ago, Oddish said: Hi, is it possible for the caption/title of gallery images to sit on top of the image in a grid:simple layout? Ideally, it would sit bottom right hand corner of the image (with some margin) and with a coloured background behind the title text so its easy to read. Any help with custom code would be appreciated! Can you share your URL to the section which you want to add caption/title? We can check it easier BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> No-code customisations for Squarespace
Oddish Posted April 19 Author Posted April 19 @Beyondspace its https://www.eucalyptroses.com.au/surface-patterns password: gumtree Thank you!
Solution tuanphan Posted April 21 Solution Posted April 21 First, you need to enable Gallery Grid Caption Next, add some Text Next, use this code to Website > Website Tools > Custom CSS figcaption.gallery-caption.gallery-caption-grid-simple { background-color: rgba(0,0,0,0.5); position: absolute; bottom: 0; text-align: right; padding: 0 !important; } figure.gallery-grid-item { position: relative; } figcaption.gallery-caption.gallery-caption-grid-simple p { color: white; margin-right: 5px; padding-top: 5px; padding-bottom: 5px; } Result 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!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment