Here is an odd one:
<div class='menu-side'>
<div>
<div class='name'>
Name
</div>
<div class='item'>
Item
</div>
</div>
</div>
Extra spaces and CRLFs between name and item elements causes them to wrap even with box-sizing: border-box
defined
I would like to keep the format of my source code the way it is, without removing extra spaces, and without adding white-space: nowrap
because that's what box-sizing: border-box
is implemented for.
https://jsfiddle.net/zm7u5ayj/
(to recreate: remove all characters between elements to become: </div><div class='item'>
)
Any help is greatly appreciated.
Edit: Dirty tricks provided in this question How to remove the space between inline-block elements? are not comforting solutions for me.