Home > OS >  HTML / CSS - margin in flexbox
HTML / CSS - margin in flexbox

Time:06-04

I'm having a margin issue. Could someone explain to me where does the margin on this picture comes from ? I can't see where I would have set it in my code. When flex set on row, there still is a top margin but no margin in left.

enter image description here

CodePudding user response:

the gap comes from:

.contact > .container {
    /* border: 1px solid rgb(0, 0, 0); */
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

remove gap:2rem; and the gap goes away

  •  Tags:  
  • html
  • Related