Jump to content

Logo Hover not allowing click through URL

Recommended Posts

Hi there, 

I wonder if you could help me please!

I have a logo on the top right of my info page, I set it up to click through to my home page. 
I have also added a hover transition so the logo changes to white, but unfortunately this now seems to be blocking the click through URL. I have looked around and I cant seem to work it out!

This is the code i currently have:

/* Info Logo Hover */
#block-yui_3_17_2_1_1688128547924_16420:hover {
    content: url("https://static1.squarespace.com/static/649838326bdf2c09135e2800/t/649ef5b9bc96d63d9b239333/1688139194444/rex_White.png");
}

Also it seems to change size slightly when hovered over but the actual source file is exactly the same size, i think it has something to do with the grid layout, but is there any code to fix it's size to the original source file

Any help will really help!

Thanks,
Ryan 

Link to comment
  • Replies 2
  • Views 255
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Change your code to this

/* Info Logo Hover */
#block-yui_3_17_2_1_1688128547924_16420:hover img{
    content: url(https://static1.squarespace.com/static/649838326bdf2c09135e2800/t/649ef5b9bc96d63d9b239333/1688139194444/rex_White.png);
}

 

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.