davidbrewster Posted February 8, 2022 Posted February 8, 2022 Site URL: https://susie-gregory-21.squarespace.com I'm trying to force the text in a particular section to stay left (with a margin of 50px) as the screen size changes. That is, in the image attached, I want that left-hand orange area to stay at 50px rather than adjusting to centre the text block on the page. I can do this with CSS by applying a margin-left tag to the content wrapper, however the content wrapper's ID is a #yui, not a #block-yui, so it changes all the time. Any ideas on how I can target the content wrapper in a way that will stay fixed? Or other ways to achieve the same end. (What we are aiming to do is stop the text from 'drifting' onto the rocks on large screens.) (Password to see the site is 'alice')
Solution Beyondspace Posted February 8, 2022 Solution Posted February 8, 2022 2 hours ago, davidbrewster said: Site URL: https://susie-gregory-21.squarespace.com I'm trying to force the text in a particular section to stay left (with a margin of 50px) as the screen size changes. That is, in the image attached, I want that left-hand orange area to stay at 50px rather than adjusting to centre the text block on the page. I can do this with CSS by applying a margin-left tag to the content wrapper, however the content wrapper's ID is a #yui, not a #block-yui, so it changes all the time. Any ideas on how I can target the content wrapper in a way that will stay fixed? Or other ways to achieve the same end. (What we are aiming to do is stop the text from 'drifting' onto the rocks on large screens.) (Password to see the site is 'alice') Try adding to Home > Design > Custom Css section[data-section-id="61a5b35dcb3aea5591e942dc"] .content-wrapper { margin: 0 50px !important; } tuanphan and davidbrewster 1 1 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> 🤖 Ask me anything
Beyondspace Posted February 8, 2022 Posted February 8, 2022 You can use the extension - Squarespace ID Finder Here is how to get the appropriate id: https://recordit.co/Aj9vXw6rfY Hope that it makes sense davidbrewster 1 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> 🤖 Ask me anything
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment