nat456987 Posted March 27 Share Posted March 27 Hi, Im trying to put the logo on top of a carousel of images. I've created two homepages, essentially I want to create this layout https://cobalt-platinum-475x.squarespace.com/better-wheels-1-1 but with the image changing behind it. So I create this page https://cobalt-platinum-475x.squarespace.com/ - but I can't get the logo centred and to work properly on mobile and different screen sizes. Thanks so much Link to comment
Solution tuanphan Posted April 1 Solution Share Posted April 1 On 3/27/2024 at 7:37 PM, nat456987 said: Hi, Im trying to put the logo on top of a carousel of images. I've created two homepages, essentially I want to create this layout https://cobalt-platinum-475x.squarespace.com/better-wheels-1-1 but with the image changing behind it. So I create this page https://cobalt-platinum-475x.squarespace.com/ - but I can't get the logo centred and to work properly on mobile and different screen sizes. Thanks so much To make it center, don't remove any code in your current code, then use this CSS code section[data-section-id="65fc26014d7b924b01939c3e"]:after { background-position: center top; } With mobile, use this CSS code @media screen and (max-width:991px) { section[data-section-id="65fc26014d7b924b01939c3e"]:after { width: 100% !important; max-width: 350px; background-size: contain; } } 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
nat456987 Posted April 1 Author Share Posted April 1 Amazing! Works perfectly, thanks so much 🤩🥳 tuanphan 1 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