I have a few div elements, that I want to align with 20px margin. However when I set my margin to 20px, there are additional 4 pixels rendered. Here is the code:
.block{
width:50px;
height:50px;
background:red;
display:inline-block;
margin-right:20px;
vertical-align:top;
}
*{
margin:0
padding:0
border-width:0px;
}
Check https://jsfiddle.net/zyfzbyed/8/ with inspector. The question is: How can i remove that extra margin? Thanks.