how to add space between 2 css borders

Issue

2 css borders have no space

I added 2 css borders in my html page using css but do not know how to add space between them. Is there any solution to this?
code:

.intro{
border: 5px dotted greenyellow;

}
.formation{
   
    border: 5px dotted brown;
   

Solution

You can add margin-bottom to the top one, so there will be a gap

.intro{
border: 5px dotted greenyellow;
margin-bottom:1rem;
}
.formation{

border: 5px dotted brown;
   
   }

Answered By – Jovan Jovanovic

Answer Checked By – Marie Seifert (AngularFixing Admin)

Leave a Reply

Your email address will not be published.