Jump to content

Custom CSS is working just in edit mode

Recommended Posts

Hey!)
I have a problem with Custom CSS, I have added a code and it works perfectly just in edit mode.
Here is a code:
 

@media only screen and (min-width: 640px){
#block-yui_3_17_2_1_1691516078741_25095 {
opacity: 0;
 transition: opacity 0.5s
}

#block-yui_3_17_2_1_1691516078741_25095:hover {
opacity: 1;
transition: opacity 0.5s
}
}

Can someone help me please?

Link to comment
  • Replies 5
  • Views 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • 2 weeks later...

You need to add !important to override some SS code

@media only screen and (min-width: 640px) {
    #block-yui_3_17_2_1_1691516078741_25095 {
        opacity:0 !important;
        transition: opacity 1s;
    }

    #block-yui_3_17_2_1_1691516078741_25095:hover {
        opacity: 1 !important;
        transition: opacity 1s;
    }
}

 

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.