2

This is my code-

.a{
background:blue;
padding:30px;
Position:relative;
display:inline-block;
margin:0;
}

If 2 divs both with class a are entered, then there is a small space between it

Kostas Mitsarakis
  • 4,772
  • 3
  • 23
  • 37
stvac
  • 23
  • 4
  • 1
    It's because [`inline-block` elements respect the white-space](http://stackoverflow.com/questions/19038799/why-is-there-an-unexplainable-gap-between-these-inline-block-div-elements/19038859#19038859) in the markup. – Josh Crozier Nov 23 '15 at 18:38

1 Answers1

-1

Use 'float:left' and remove 'display:inline-block' hope it will solve problem

Shantanu Verma
  • 260
  • 2
  • 12