I have a layout similar to:
I would like for the div to only exp
div
This has been mentioned in comments and is hard to find in one of the answers so:
If you are using display: flex for whatever reason, you can instead use:
display: flex
div { display: inline-flex; }
This is also widely supported across browsers.