Use flexbox instead of inline-block to avoid horizontal space caused by spaces in HTML - fixes #39.