First I was unable to find related answer since I don't know if it's about inline-block or not so maybe there's already something about inline-block in stackoverflow but since my question is to know where is the problem. I'm asking about where the problem is not specifically about inline-block.
Also the question in the title isn't related to how to remove the space but what is it...
If you look at this JSFiddle, there's a space in front of Confirmation. You don't need to inspect the element to see it. Just hovering over there and the cursor changes for a text cursor.
I'm unable to figure out what is that space because Confirmation which is the same as Name and Name takes all the space as it should.
.GridHeader {
width:100%;
height:25px;
background-color:#0860a3;
white-space:nowrap;
border-bottom:1px solid lightgray;
overflow:hidden
}
.GridColumn {
border-right:1px solid lightgray;
display:inline-block;
padding-left:5px;
padding-right:5px;
color:white;
height:25px;
line-height:25px;
}
<div id="GridHeader" class="GridHeader">
<div id="colName" class="GridColumn" style="cursor:pointer;width:auto">Name</div>
<div id="colConfirmation" class="GridColumn" style="cursor:pointer;width:auto">Confirmation</div>
</div>