raeroshow Posted April 5, 2022 Share Posted April 5, 2022 Site URL: https://rachel-dickstein-dev.squarespace.com/director/blood-moon-2 https://rachel-dickstein-dev.squarespace.com/director/blood-moon-2 PW: The@ter2022 Hi all! I am tying to add a color gradient so that the purple section blends into the image section above it. I've been able to do this in the past, but on this page, it doesn't look good on small screens / mobile. Looks like the overlay isn't tall enough so a gap is showing. I tried adding "height" to my code to no avail. Anyone got the trick to fix? Is it that my image itself isn't tall enough? Thanks! Rachel This is the CSS I added: /*blood moon */ section[data-section-id="62422a5b8f70047a56eea75d"] .content-wrapper { width:100%!important; background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0), rgba(77, 72, 106, 1)); z-index: 1; max-width: inherit; } PS @julians - saw you asked a similar questions so I'm adding you! Link to comment
Beyondspace Posted April 8, 2022 Share Posted April 8, 2022 (edited) On 4/6/2022 at 4:28 AM, raeroshow said: Site URL: https://rachel-dickstein-dev.squarespace.com/director/blood-moon-2 https://rachel-dickstein-dev.squarespace.com/director/blood-moon-2 PW: The@ter2022 Hi all! I am tying to add a color gradient so that the purple section blends into the image section above it. I've been able to do this in the past, but on this page, it doesn't look good on small screens / mobile. Looks like the overlay isn't tall enough so a gap is showing. I tried adding "height" to my code to no avail. Anyone got the trick to fix? Is it that my image itself isn't tall enough? Thanks! Rachel This is the CSS I added: /*blood moon */ section[data-section-id="62422a5b8f70047a56eea75d"] .content-wrapper { width:100%!important; background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0), rgba(77, 72, 106, 1)); z-index: 1; max-width: inherit; } PS @julians - saw you asked a similar questions so I'm adding you! Try adding to Home > Design > Custom Css @media only screen and (max-width: 640px) { section[data-section-id="62422a5b8f70047a56eea75d"] .content-wrapper { padding-top: 31vmax !important; } } Let me know how it works on your site Edited April 8, 2022 by bangank36 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 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
Beyondspace Posted April 8, 2022 Share Posted April 8, 2022 My testing BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 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