Jump to content

Need css help

Recommended Posts

  • Replies 1
  • Views 225
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted

the code

.custom-html a {
    position: relative;
    display: block
}

.custom-html a:after {
    content: "";
    background-color: #fff;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    opacity: 0
}

.custom-html center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: 999999999999;
    opacity: 0
}

.custom-html h2,.custom-html p {
    display: block
}

.custom-html:hover center {
    opacity: 1
}

.custom-html:hover a:after {
    opacity: 1
}

 

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!)

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.