You most likely have newlines between the divs in your HTML, right? If there are any separators between divs then the browser will display spaces between them.
The following example has spaces between the divs:
<style>
* {
margin: 0;
border: 1px solid black;
}
div {
display: inline-block;
}
</style>
<div>
Div1
</div>
<div>
Div2
</div>
<div>
Div3
</div>
There are two methods you can use to remove the spaces between the divs. Either take away the separators between the div elements like so:
<div>
Div1
</div><div>
Div2
</div><div>
Div3
</div>
Or make your divs floating elements:
...
div {
display: inline-block;
float: left;
}
...
Hope that helps!
Edit:
Also see related SO question: How can I stop the new line from adding a space between my list items in HTML