I have a little issue with HTML parser and spaces.
<div class="a">
<div class="b">Foo</div>
<div class="b">Bar</div>
</div>
.a { width: 500px; }
.b { width: 50%; display:inline-block; }
I want to display 2 div
element in the same line, like this : http://jsfiddle.net/m4xkpLsv/
When I have space between the two div
elements, my browser inserts a little blank space between them.
The most used solutions are to use HTML comment, delete spaces or set a width of 49%. I don't like theses solutions.
How can I modify my CSS to display theses elements ?