Background color of borders | Sololearn: Learn to code for FREE!


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.

8/25/2019 11:34:35 PM

SolomonDavid Akesoba

2 Answers

New Answer


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)