Jump to content

Text with hyperlink hover effect

Go to solution Solved by tuanphan,

Recommended Posts

I want to essentially make a custom button from a text block. I have everything right except I can't get the text color to change upon hover. I want it to turn white or #f3f1ee

Here is the code as I have it so far:

#block-yui_3_17_2_1_1715361249793_12679:hover 
{
    color: white !important;
    background: #585951 !important;
    border: 25 !important;
  	border-color: #585951 !important;
    opacity: 1 !important;

}

 website is: https://ballard-inn.squarespace.com/

Screenshot 2024-05-10 at 11.02.02 AM.png

Screenshot 2024-05-10 at 11.01.59 AM.png

Link to comment
  • Replies 5
  • Views 364
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Posted (edited)

On Mobile can you make it stick to the bottom of the section (and make the section take up 100% of screen? Right now it's taller than my phone browser height.

 

Also, how do I make the whole text box a clickable link instead of the just the text. Thanks!

Edited by kimmydesign
Link to comment
On 5/14/2024 at 12:36 AM, kimmydesign said:

On Mobile can you make it stick to the bottom of the section (and make the section take up 100% of screen? Right now it's taller than my phone browser height.

 

Also, how do I make the whole text box a clickable link instead of the just the text. Thanks!

#1. You mean move button to bottom of screen?

#2. Use this CSS code

div#block-yui_3_17_2_1_1715361249793_12679 a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

 

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.