Jump to content

My code blocks move after I leave the page

Recommended Posts

I'm trying to setup some code blocks which are image links which change when you hover over them. (Image 1) I followed a tutorial by Carl Johnson (Which I will link below) and added a line to the code blocks to make them into clickable links. They display fine at first or if you are in the editor, (Image 2) but the second I leave the page they're on and come back, they are all misaligned. (Image 3) I have included the code I used for both the blocks (Image 4) as well as the CSS. (Image 5) I hope someone can help me with this because I cannot find anything about this problem. Thanks.1398961666_1.Hover.thumb.png.5e9de0df08e6a1b94f5f303ef70f0cbc.png

 

114706920_2.Working.thumb.png.2f9826cf3f26a6b8caceab175e2efced.png

 

129174231_3.Broken.thumb.png.c39c21dae83e3307bafd8aaf2fa313f6.png

 

1230708300_4.CodeBlocks.thumb.png.dd23891938a46552ef86f90dbac5e40d.png

 

215891017_5.CSS.thumb.png.6509ae8c8b9090a6e450694d33a73ca5.png

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

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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.