Guest Posted July 29, 2021 Share Posted July 29, 2021 Site URL: https://safeharborcoronado.org I am using custom css to center align 7 images on mobile. But I notice that every time I made any edits to the page, the data-section-id numbers change and I have to re-target all the images and change my css. This is not manageable long-term, is there a way to apply permanent styles? Re: safeharborcoronado.org/about @media screen and (max-width:640px) { #yui_3_17_2_1_1627361884935_299, #yui_3_17_2_1_1627359995480_304, #yui_3_17_2_1_1627359995480_323, #yui_3_17_2_1_1627359995480_344, #yui_3_17_2_1_1627359995480_367, #yui_3_17_2_1_1627359995480_388 { margin-left: 0px !important; } } Link to comment
tuanphan Posted August 1, 2021 Share Posted August 1, 2021 Hi. You used dynamic block id, so it will changed if you reload the spage. Target static block id or data-section-id Can you share link to page in screenshot? I don't see it on homepage Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Beyondspace Posted August 1, 2021 Share Posted August 1, 2021 On 7/30/2021 at 2:00 AM, seashore said: Site URL: https://safeharborcoronado.org I am using custom css to center align 7 images on mobile. But I notice that every time I made any edits to the page, the data-section-id numbers change and I have to re-target all the images and change my css. This is not manageable long-term, is there a way to apply permanent styles? Re: safeharborcoronado.org/about @media screen and (max-width:640px) { #yui_3_17_2_1_1627361884935_299, #yui_3_17_2_1_1627359995480_304, #yui_3_17_2_1_1627359995480_323, #yui_3_17_2_1_1627359995480_344, #yui_3_17_2_1_1627359995480_367, #yui_3_17_2_1_1627359995480_388 { margin-left: 0px !important; } } Use this tool to target the permanent id Chrome Web Store - Extensions (google.com) tuanphan 1 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