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

+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.

8/25/2019 11:34:35 PM

SolomonDavid Akesoba

2 Answers

New Answer

+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

0