Jump to content

Image Swap Help

Recommended Posts

Site URL: https://kerriedefelice.squarespace.com/

Hello-

So I am working on my Portfolio site and I have used an image swap CSS code. When I am editing my site in the back end, it displays perfectly. When I go to the live site, the first images do not have padding between them and when I rollover the image it has some padding. I have not messed with any padding code, so why is this happening?

Thanks in advance!

squarespacehelp-01.png

squarespacehelp-02.png

Link to comment
  • Replies 1
  • Views 328
  • Created
  • Last Reply

Popular Days

Posted Images

Surprisingly for me, I figured it out by swapping to a different code. Below was my solution. 

<a href="YOUR HYPERLINK ADDRESS HERE">
 <img src="YOUR FIRST URL HERE"
onmouseover="this.src='YOUR SECOND URL HERE'"
onmouseout="this.src='YOUR FIRST URL HERE'"></a> 
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.