I want to create a simple div
that shrinks and expands according to the content contained.
https://jsfiddle.net/qa5dr0x8/
<body>
<div style="border: 1px solid red; padding: 15px; width:auto;">
test text
</div>
</body>
Result: the red box expands to the full width of the page. Why?