Jump to content

Mobile View Syntax Error

Go to solution Solved by tuanphan,

Recommended Posts

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!

Screen Shot 2023-12-14 at 8.22.15 PM.png

Link to comment
  • Replies 4
  • Views 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

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
  • 2 weeks later...
  • Solution
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

Create an account or sign in to comment

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

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.