+ 1

How can I make a rainbow border around the pictures and the table?

https://code.sololearn.com/WAKsrOxWrVjd/?ref=app

28th Sep 2017, 4:44 PM
B.D
B.D - avatar
4 ответов
+ 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
29th Sep 2017, 12:51 AM
Calviղ
Calviղ - avatar
+ 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
28th Sep 2017, 4:48 PM
Kamil
Kamil - avatar
+ 2
Thanks for your help!
28th Sep 2017, 4:52 PM
B.D
B.D - avatar
0
Thanks
29th Sep 2017, 3:33 AM
B.D
B.D - avatar