Relative Content

Tag Archive for htmlcssmarkup

Why div no stretched by content?

All my life I thought that a div expands to the size of its content unless its dimensions are explicitly set or are limited.
html and body have no size limit – stretch as much as you want.
I would like to understand since when did the logic change and it expands to the size of viewPort?
Am I wrong or is this a bug?