hostyle01 Posted September 7, 2023 Share Posted September 7, 2023 Hi, I would like to create a gradient outline button styled as per the attached, for medium and form field buttons for this site: https://www.aucklandprayerfestival.nz/ Any help would be amazing, thank you. Holly Link to comment
Solution Lesum Posted September 7, 2023 Solution Share Posted September 7, 2023 @hostyle01 Hi, You can add this code snippet to create a gradient outline button styled as per the attached image: #siteWrapper.site-wrapper .sqs-button-element--primary { display: flex; align-items: center; justify-content: center; position: relative !important; background: linear-gradient(white, white) padding-box, linear-gradient(to right, #daa480 25%, #a3eeff) border-box; border: solid 10px transparent !important; border-radius: 300px !important; } #siteWrapper.site-wrapper .sqs-button-element--primary::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; border-radius: inherit; } #siteWrapper.site-wrapper .sqs-button-element--primary { color: #4396b6 !important } All the buttons on your website are currently set as tertiary/small. To apply the code and impact the design, you'll need to switch the button style to primary/medium. You can make this adjustment in the button type and padding settings under site styles. Let me know how it goes. Thanks! hostyle01, CassAggett and tuanphan 3 If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. Sam Web Developer & Digital Designer ☕ Did you find my contribution helpful? Buy me a coffee? Link to comment
hostyle01 Posted September 7, 2023 Author Share Posted September 7, 2023 Thanks @Lesum that worked when I applied it to the medium button block and form field, thanks for your help! Lesum 1 Link to comment
crabbycrabcrab Posted March 7 Share Posted March 7 Is it possible to do this but the fill colour is transparent? Link to comment
tuanphan Posted March 8 Share Posted March 8 22 hours ago, crabbycrabcrab said: Is it possible to do this but the fill colour is transparent? If you share link to page where you use the code, we can adjust code easier crabbycrabcrab 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!) 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