+ 1

Background color of borders

In html/css, can you insert a border beneath another border? Or give a background color to a border that is neither the background color of the text nor the color of the border? For example, a dashed border that is yellow but has green background even though the text background is blue.

25th Aug 2019, 11:34 PM
SolomonDavid Akesoba
SolomonDavid Akesoba - avatar
2 Respostas
+ 4
Using a box-shadow, you can do what you need by using the colour of the shadow as the background of your container (if that makes sense) https://code.sololearn.com/W90BCt58Qkz6/?ref=app
25th Aug 2019, 11:49 PM
Faisal
Faisal - avatar
0
Thanks
25th Aug 2019, 11:54 PM
SolomonDavid Akesoba
SolomonDavid Akesoba - avatar