I use float style to remove spaces and I want to center it, but after my div#bar
another blank space appears

This is my html:
<div id="foo"> <div id="bar"> <div class="divo divo1">test1</div> <div class="divo divo2">test2</div> <div class="divo divo3">test3</div> <div class="divo divo4">test4</div> </div> </div>
and css:
#foo { width: 100%; background: #999; text-align: center; } #bar { display: inline-block; } .divo { display: block; float: left; }
http://jsfiddle.net/Kodam/ay3ywtqa/
Note. I do not want to use negative margin styles or font size 0.
source share