NadineS Posted November 3 Share Posted November 3 Hey SS friends, I'm trying to get my header button to be a gradient the same way as my body fonts. https://matthewhooks.squarespace.com/ pw: hooks Any ideas why the following code doesn't work? /* Flipped Diagonal Three-Stage Gradient for Body Buttons */ .sqs-block-button-element, { background: #007991; background: -webkit-linear-gradient(to top right, #9C2079, #CF2E43, #EA542E); background: linear-gradient(to top right, #9C2079, #CF2E43, #EA542E); } .sqs-block-button-element:hover{ background: #007991; background: -webkit-linear-gradient(to top left, #9C2079, #CF2E43, #EA542E); background: linear-gradient(to top left, #9C2079, #CF2E43, #EA542E); } /* Flipped Diagonal Three-Stage Gradient for Header Button */ .header-actions-action--cta { background: #007991; background: -webkit-linear-gradient(to top right, #9C2079, #CF2E43, #EA542E); background: linear-gradient(to top right, #9C2079, #CF2E43, #EA542E); } .header-actions-action--cta:hover { background: #007991; background: -webkit-linear-gradient(to top left, #9C2079, #CF2E43, #EA542E); background: linear-gradient(to top left, #9C2079, #CF2E43, #EA542E); } Link to comment
Solution tuanphan Posted November 6 Solution Share Posted November 6 You need to use !important to this code .header-actions-action--cta a:hover { background: linear-gradient(to top left,#9c2079,#cf2e43,#ea542e) !important; opacity: 1 !important; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment