Is it possible to have 2 background-colors on a border | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Is it possible to have 2 background-colors on a border

2nd Oct 2017, 9:00 PM
Osasona Similoluwa
Osasona Similoluwa - avatar
12 Answers
3rd Oct 2017, 12:45 AM
Calviղ
Calviղ - avatar
+ 2
check this how do I make the background colors 2 different colors https://code.sololearn.com/WVO593Url6U9/?ref=app
3rd Oct 2017, 12:24 AM
Osasona Similoluwa
Osasona Similoluwa - avatar
+ 1
use nested divs
2nd Oct 2017, 9:27 PM
Amr Ibrahim Khudair
Amr Ibrahim Khudair - avatar
+ 1
can u explain further
2nd Oct 2017, 10:25 PM
Osasona Similoluwa
Osasona Similoluwa - avatar
+ 1
<div style="border: 5px solid; border-image: linear-gradient(45deg, red, blue, red, blue) 10; width:100px; height: 100px;"></div> https://code.sololearn.com/WUUHUmxN9Nuq/?ref=app
2nd Oct 2017, 11:32 PM
Calviղ
Calviղ - avatar
+ 1
thanks Calvin but I forgot to add background color
2nd Oct 2017, 11:33 PM
Osasona Similoluwa
Osasona Similoluwa - avatar
+ 1
With 2 solid colors now, please check out the code again.
3rd Oct 2017, 12:14 AM
Calviղ
Calviղ - avatar
+ 1
yes u are on the way
3rd Oct 2017, 12:16 AM
Osasona Similoluwa
Osasona Similoluwa - avatar
+ 1
but u know u can fill boders with colors
3rd Oct 2017, 12:16 AM
Osasona Similoluwa
Osasona Similoluwa - avatar
+ 1
What do you actually want?
3rd Oct 2017, 12:24 AM
Calviղ
Calviղ - avatar
+ 1
check my last post
3rd Oct 2017, 12:35 AM
Osasona Similoluwa
Osasona Similoluwa - avatar
+ 1
thanks a lot....
3rd Oct 2017, 9:12 AM
Osasona Similoluwa
Osasona Similoluwa - avatar