missyranger Posted October 15, 2019 Share Posted October 15, 2019 Hi, I have this small code on my web. The problem is that it is triggering all pictures from blog to be also alligned to the left and I would like to have them centered. Can anyone advise how to exclude all blog posts from the following below? Because for the rest of the website I would like to keep them left-aligned. // Left Align Images // .sqs-block-image .intrinsic { margin-left: 0px !important; } Thank you very much. Link to comment
colin.irwin Posted October 15, 2019 Share Posted October 15, 2019 Try this body:not(.collection-type-blog.view-item) { .sqs-block-image .intrinsic { margin-left: 0px !important; } } I'm Colin Irwin aka silvabokis. I've been a Squarespace designer & developer since 2013. I remember when it was all wild prairies round these here parts. 🐃🤠 Advice I give on here is free, though I may sometimes post an affiliate link or promote something I've written. That reminds me.. ..you might want to check out my Squarespace template finder or have a look at my other Squarespace tips Speaking of tips, 💲I've got a tip jar that you're welcome to throw a few quid into if you think I've helped you. If you're looking for a Squarespace developer Book a chat or Drop me a line - first meeting is always free Link to comment
missyranger Posted October 17, 2019 Author Share Posted October 17, 2019 On 10/15/2019 at 4:04 PM, colin.irwin said: Try this body:not(.collection-type-blog.view-item) { .sqs-block-image .intrinsic { margin-left: 0px !important; } } Tried, it doesnt work. I do assume that already existing blog posts would update as well. Link to comment
colin.irwin Posted October 17, 2019 Share Posted October 17, 2019 Could you share a link to the site? I'm Colin Irwin aka silvabokis. I've been a Squarespace designer & developer since 2013. I remember when it was all wild prairies round these here parts. 🐃🤠 Advice I give on here is free, though I may sometimes post an affiliate link or promote something I've written. That reminds me.. ..you might want to check out my Squarespace template finder or have a look at my other Squarespace tips Speaking of tips, 💲I've got a tip jar that you're welcome to throw a few quid into if you think I've helped you. If you're looking for a Squarespace developer Book a chat or Drop me a line - first meeting is always free Link to comment
missyranger Posted October 17, 2019 Author Share Posted October 17, 2019 1 hour ago, colin.irwin said: Could you share a link to the site? Sure, here. Link to comment
colin.irwin Posted October 17, 2019 Share Posted October 17, 2019 I've double checked my code using the code inspector on your site and the change I made is working. That particular rule does not get applied on blog posts but is applied elsewhere. However, it looks like that item already has margin-left set to zero so there is no visual difference whether or not the rule is applied. I'm Colin Irwin aka silvabokis. I've been a Squarespace designer & developer since 2013. I remember when it was all wild prairies round these here parts. 🐃🤠 Advice I give on here is free, though I may sometimes post an affiliate link or promote something I've written. That reminds me.. ..you might want to check out my Squarespace template finder or have a look at my other Squarespace tips Speaking of tips, 💲I've got a tip jar that you're welcome to throw a few quid into if you think I've helped you. If you're looking for a Squarespace developer Book a chat or Drop me a line - first meeting is always free Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.