With 'width' we can set the width of an element, either in absolute (px) or in relative (%, em) units. Negative valuees are not allowed.
Width in relative units (like width:50%; works, it will be taking the width from the parent element (that element that contains this element). Like so:
It results in the height getting set to 'auto', which means as tall as the content inside needs the box to be.