+ 1
Is it possible to use gradients for borders in css?
4 ответов
+ 2
Kasun Chaturanga
Gradient for border
https://code.sololearn.com/W90zm525LAzF/?ref=app
For browsers Firefox, Safari, Ghrome, Opera you need to add moz, webkit, o.
+ 5
gradients fill the inside of the element.
borders surround the outside,so i dont know how this is possible
+ 2
You can do it with border-image CSS prop.. Example :
https://code.sololearn.com/WnABhbbtuC1x/
Note that not all browsers support it (and some specific value of sub-props) and its not very intuitive to use at begin... go here for details https://developer.mozilla.org/en-US/docs/Web/CSS/border-image
+ 1
I don't think so.
You can create a div and make gradient in it,
make it thin as border,
position it as the border of another div.