Dear support,
would it be possible to give elements like a textblox or a column a gradient border like in the screenshot? I would need a gradient with 3 colors from top to bottom:
#E95A1A
#6F536B
#142453
Thanks for any help!
Hi Dondela,
Thanks for contacting us!
Please edit your Text Block element and give it a custom ID (“custom-border” in example below) and then add following code to bottom of Quick CSS field
#custom-border {
padding: 1rem;
border-width: 10px;
border-style: solid;
border-image: linear-gradient( to bottom, #E95A1A, #6F536B, #142453 ) 1 100%;
border-right: none;
}
Regards,
Yigit
Hi Yigit,
thanks for your help!
It works, but the “border-right: non;” seems not to work. I still have a thin gradient border on the right side.
Hi,
Please refresh your page a few times. It works fine on my end. I attached a screenshot in private content field below :)
Cheers!
Yigit
HI Yigit,
you are right: it works on all browsers, except safari on mac. Also on mobile-safari i still see a gradient border on the right side. (See screenshot)
Hi,
Please try this CSS instead:
#gradient-border {
padding: 1rem;
border-left-width: 10px;
border-left-style: solid;
border-image: linear-gradient( to bottom, #E95A1A, #6F536B, #142453 ) 1 100%;
border-right-width: 0;
}
Best regards,
Rikard
Hi Rikard,
awesome, this works!
Thanks for help!