NadineS Posted May 26, 2022 Posted May 26, 2022 Site URL: https://monicakayne.squarespace.com/?password=kozlov I'm trying to change the buttons on my site to gold ones via CSS, but for some reason I can't target the header button? Anyone know why? I'm sure it's my own error, but I've tried: .header-button .header-action .btn .header-action-ation .btn CSS Code is: // GOLD BUTTONS .sqs-block-button-element, .newsletter-form-button, .header-actions-action .btn, .form-wrapper input[type=submit], { border-radius: 5px; padding: 10px 25px; color: #000!important; text-transform: uppercase; text-shadow: 0px -1px 0px rgba(0,0,0,0.4); background-image: -webkit-repeating-linear-gradient( left, rgba(255, 238, 170, 0)0%, rgba(255, 238, 170, 0)3%, rgba(255, 238, 170, 0)5%), linear-gradient(180deg, #a95 0%, #fea 47%, #dc8 53%, #fea 100%); }
tuanphan Posted May 27, 2022 Posted May 27, 2022 Use this code header#header a.btn { border-radius: 5px; padding: 10px 25px; color: #000!important; text-transform: uppercase; text-shadow: 0px -1px 0px rgb(0 0 0 / 40%); background-image: -webkit-repeating-linear-gradient( left, rgba(255, 238, 170, 0)0%, rgba(255, 238, 170, 0)3%, rgba(255, 238, 170, 0)5%), linear-gradient(180deg, #a95 0%, #fea 47%, #dc8 53%, #fea 100%) !important; } 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!)
NadineS Posted May 27, 2022 Author Posted May 27, 2022 Thanks @tuanphan... I tried it but this error message came up... error evaluating function `rgb`: color functions take numbers as parameters
tuanphan Posted May 29, 2022 Posted May 29, 2022 ah, forgot, use this code header#header a.btn { border-radius: 5px; padding: 10px 25px; color: #000!important; text-transform: uppercase; text-shadow: 0px -1px 0px rgba(0,0,0,0.4); background-image: -webkit-repeating-linear-gradient( left, rgba(255, 238, 170, 0)0%, rgba(255, 238, 170, 0)3%, rgba(255, 238, 170, 0)5%), linear-gradient(180deg, #a95 0%, #fea 47%, #dc8 53%, #fea 100%) !important; } 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!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment