Elements like button and img have inline-block as their default display value.

Make sure to pick inline-block.