Why is an empty space between divs when using display: inline-block
, like in this example: http://jsbin.com/IhULuZO/1/edit.
I know I can use float:left
, but I want to get rid of the empty space without floating elements if possible.
Because the indentation of your code technically is a bunch of whitespace.
<div class="parent">
<div class="child"></div><div class="child"></div><div class="child"></div>
</div>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With