Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

permanent css styling


seashore

Question

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;
}
}

Screen Shot 2021-07-29 at 11.59.18 AM.png

Link to comment

3 answers to this question

Recommended Posts

  • 0

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.

How to: Setup password & share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care - Learn CSS - Custom Popup - Testimonial Slider

I'm Tuan, blogger/owner of a free library for children in Vietnam. Helping the community is a hobby. Contact me via email.

Link to comment
  • 0
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;
}
}

Screen Shot 2021-07-29 at 11.59.18 AM.png

Use this tool to target the permanent id

Chrome Web Store - Extensions (google.com)

Greeting, it's BaNgan from BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Portfolio hover Replace Link Style
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...