Jump to content

Box around text when you hover

Recommended Posts

  • Replies 5
  • Views 401
  • Created
  • Last Reply
On 8/12/2021 at 5:15 PM, emma123456 said:

Site URL: http://vitanova.co.nz

Hi there, 

 

I am looking to create a box that appears around body of text when you hover over it to indicate this is the option you are reading. 

like image attached. 

 

Is there a way to do this on Squarespace?

 

Thanks 

Screenshot 2021-08-12 at 22.14.27.png

Hi. Yes. Possible.

Can you share link to page where you added text? We can help easier

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
On 8/16/2021 at 2:32 PM, emma123456 said:

Hey, sorry making some edits so took it down from live. Its back up now! 

Add to Design > Custom CSS

/* Box hover */
div#block-e121a915d35f9eb46d71+.row .span-5 {
    border: 1px solid transparent;
    margin-left: -2px;
}
div#block-e121a915d35f9eb46d71+.row .span-5:hover {
    border-color: #d4af35 !important;
    border-radius: 30px;
}

 

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.