Jump to content

My Hover picture change cannot work

Recommended Posts

Posted (edited)

 

I try to use the following code to change the hover profile on my homepage, however every time I refresh the website, the original picture's id continuously changed. Anybody knows how to make this id fixed so that I can make this code work? Many thanks.

Here's my website link https://www.shiqius.com/

image.png.2735b1670988225d48bef5f70ddd4884.png

Edited by byebarcelona
  • Replies 5
  • Views 433
  • Created
  • Last Reply

Top Posters In This Topic

Posted
14 hours ago, byebarcelona said:

 

I try to use the following code to change the hover profile on my homepage, however every time I refresh the website, the original picture's id continuously changed. Anybody knows how to make this id fixed so that I can make this code work? Many thanks.

image.png.2735b1670988225d48bef5f70ddd4884.png

Can you share your URL so I can take a look?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - Lightbox captions only mode)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 No-code customisations for Squarespace
🚀 Learn how to rank new pages on Google in 48 hours!

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

Posted

Which image do you refer? 

image.thumb.png.a581722117ba53e2c8687035ffe0c487.png

I think this id would not change

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - Lightbox captions only mode)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 No-code customisations for Squarespace
🚀 Learn how to rank new pages on Google in 48 hours!

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

Posted
5 hours ago, Beyondspace said:

Which image do you refer? 

image.thumb.png.a581722117ba53e2c8687035ffe0c487.png

I think this id would not change

Thank you very much. I found the fixed image ID.

But this time when I tried this code, and the hover image would enlarge... I have tried smaller image, the hover image would still enlarge in same level... I want to keep the hover image and the original image at the same size. What should I do?

image.png

Posted
On 2/7/2023 at 4:22 AM, byebarcelona said:

Thank you very much. I found the fixed image ID.

But this time when I tried this code, and the hover image would enlarge... I have tried smaller image, the hover image would still enlarge in same level... I want to keep the hover image and the original image at the same size. What should I do?

image.png

Screen Recording 2023-02-06 at 1.20.54 PM.mov

Use this class name instead

#block-yui_3_17_2_1_1674928119223_7236:hover img 

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!)

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.