SMSSTYLING Posted December 15, 2023 Posted December 15, 2023 Hi, The mobile version of my logo was initially aligned to the right. However, I'm now encountering a syntax error on line 4, leading to the logo overlapping with my photo, make it difficult to see. CSS: //logo on mobile @media screen and (max-width: 640px) { #blockid=97f5e9d103fbab98a3eb_shim" { margin-top:-43%; margin-left:30%; margin-right: -2%; } } Any assistance would be welcomed!
melody495 Posted December 15, 2023 Posted December 15, 2023 1 hour ago, SMSSTYLING said: #blockid=97f5e9d103fbab98a3eb_shim" { Hi, you have a rogue double quote at the end of your blockid. This line should be #blockid=97f5e9d103fbab98a3eb_shim { Also, might want to double check your the block id that you are targeting. I think it should be #blockid=97f5e9d103fbab98a3eb. But do check, or please share your site url so we can check. -------- > 👆 <---------- Please quote or @ me when replying, or I won't get a notification Melody | Web Designer & Developer | All things Squarespace When I have time, I like to help on the Forum, but if you need my full attention, please send your request here. Tools I use: (affiliate links) 📅Blog Date Format plugin (Free by BeyondSpace) ⏬Lazy Load Summary Block plugin (by Squareswebsites) 📜Privacy Policy & Cookie Consent plugin (10% off by Termageddon) 📈SEO plugin for Squarespace (by SEOSpace) ☕ Did I help? I like coffee (Thank you)
SMSSTYLING Posted December 15, 2023 Author Posted December 15, 2023 Hi Melody, My site url is https://www.shajuannastewart.com/.
Solution tuanphan Posted December 25, 2023 Solution Posted December 25, 2023 On 12/15/2023 at 1:43 PM, SMSSTYLING said: Hi Melody, My site url is https://www.shajuannastewart.com/. I think the exact code should be @media screen and (max-width: 767px) { div#block-97f5e9d103fbab98a3eb { margin-top:-43%; margin-left:30%; margin-right: -2%; } } 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!)
SMSSTYLING Posted December 26, 2023 Author Posted December 26, 2023 Thank you @tuanphan, the code worked! tuanphan 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment