Hi im using flexbox and ive create 4 divs. I have 2 divs on each line with width of 50% (im also using flex:wrap). My question is why is it that when use :
.item {
flex-basis: 50%;
margin: 10px 10px;
background: lightblue;
height: 50px;
}
the divs all go to underneath eachother like block elements but if I use:
flex-basis: calc(50% - 20px);
margin: 10px;
background: lightblue;
height: 50px;
it works.
Is margin: 10px 10px the same as the margin in calc(50% - 20px)?