How to make the border linear-gradient? How to use the direction? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to make the border linear-gradient? How to use the direction?

My logo name is Undead and the first color in linear-gradient display the second color(stop color) instead of the first one. I want to use the linear-gradient in border instead of text in Play now button. This is my try https://code.sololearn.com/W0JpJxxtXDG6/?ref=app Thank you in advance

24th Aug 2022, 7:53 AM
Kuro Chi
Kuro Chi - avatar
2 Answers
+ 1
if you want only border liner-gradient then. Erase this--- background: -webkit-linear-gradient(right, rgb(6,255,243), rgb(255,37,206)); Kuro Chi Edit:- Add this in button -- border:20px solid transparent ; border-image:linear-gradient(45deg,rgb(6,255,243), rgb(255,37,206)); border-image-slice:1;
24th Aug 2022, 8:36 AM
Darpan kesharwani🇮🇳[Inactive📚]
Darpan kesharwani🇮🇳[Inactive📚] - avatar
0
How can I change border-radius if I use border-image?
24th Aug 2022, 8:45 AM
Kuro Chi
Kuro Chi - avatar