If the content inside the element is smaller
than the value of max-height, the max-height
property has no effect. In this case, the element's height
is calculated based on its content.
In the above example, the paragraph content
is still smaller than the max-height, which is set to 150px.
This is why, the p element will adjust its height to fit the content.