SMSSTYLING Posted December 15, 2023 Share 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! Link to comment
melody495 Posted December 15, 2023 Share 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 | Squarespace Nerd e: melody@melodylee.tech 💻 💁♀️ 1-2-1 Squarespace Training session <- feeling stuck and want to learn? 👩💻 💁♀️ Website help <- send me your to-do list. From code to plugin to domain setup. 🧰 See the tools I use (contain affiliate links) ☕ Did I help? I like coffee (Thank you) Link to comment
SMSSTYLING Posted December 15, 2023 Author Share Posted December 15, 2023 Hi Melody, My site url is https://www.shajuannastewart.com/. Link to comment
Solution tuanphan Posted December 25, 2023 Solution Share 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!) Link to comment
SMSSTYLING Posted December 26, 2023 Author Share Posted December 26, 2023 Thank you @tuanphan, the code worked! tuanphan 1 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