display: inline, different types of white-space, overflow-wrap and so on, but nothing works. I've even tried to compare the computed CSS between the button and an a tag, but can't seem to find anything relevant that would cause it to behave the way it does. Any ideas on how to solve this?