momallo Posted September 30, 2021 Share Posted September 30, 2021 (edited) Site URL: https://tomato-hibiscus-5kcf.squarespace.com/fleet-finch Hello! I have used some code to create a caption on hover in a simple grid gallery. It works fine, but the I would like to increase the padding around the text. https://tomato-hibiscus-5kcf.squarespace.com/fleet-finch password: Magnolia. Here is the code I used: /* Image Captions on Hover*/ .layout-caption-overlay-hover .image-caption-wrapper { min-height: 100%; display: flex; align-items: center; /*vertically centered */ justify-content: center; /*text align center*/ background: rgba(255, 108, 0, .8) !important; /* Background Overlay*/ } .layout-caption-overlay-hover .image-caption-wrapper p1 { color: White !important; /* font color of caption */ } Edited September 30, 2021 by momallo didn't finish before I posted! Beyondspace 1 Link to comment
Beyondspace Posted October 1, 2021 Share Posted October 1, 2021 14 hours ago, momallo said: Site URL: https://tomato-hibiscus-5kcf.squarespace.com/fleet-finch Hello! I have used some code to create a caption on hover in a simple grid gallery. It works fine, but the I would like to increase the padding around the text. https://tomato-hibiscus-5kcf.squarespace.com/fleet-finch password: Magnolia. Here is the code I used: /* Image Captions on Hover*/ .layout-caption-overlay-hover .image-caption-wrapper { min-height: 100%; display: flex; align-items: center; /*vertically centered */ justify-content: center; /*text align center*/ background: rgba(255, 108, 0, .8) !important; /* Background Overlay*/ } .layout-caption-overlay-hover .image-caption-wrapper p1 { color: White !important; /* font color of caption */ } maybe try .gallery-caption-wrapper { padding: 15px 15px; box-sizing: border-box; } BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date format) 💫 Animated Buttons (Referral URL) 🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations) 🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. 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