+ 1
How can I make a rainbow border around the pictures and the table?
4 Respostas
+ 1
img, table {
border-width: 5px;
border-style: solid;
border-image: linear-gradient(30deg, orange , yellow, green, cyan, blue, violet) 1 1;
}
* remember to put autoprefixer for all browsers
+ 5
check out this code, it may seem very complex but it's actually quite simple
https://codepen.io/timteeling/pen/aiFcn
take a look at this post as well
https://stackoverflow.com/questions/2717127/css3-gradient-borders
+ 2
Thanks for your help!
0
Thanks