You can set elements as block level elements using display: block; or float: left; . If you must use inline-block , you will have to customize your HTML either by removing spaces in the HTML itself, or using Javascript.
As @jValdron noted, setting the font size to 0 for parent elements, and then again setting the font size to the elements that need it, also works. However, there are potential problems with this (for example, what if you have text in the parent element that is not wrapped in another element yet?). Despite this, the font-size solution really works, and I used this before.
source share