The dimension properties control the size of an element, as well as its minimum and maximum dimensions. They do not inherit and can be applied only to block elements and replaced inline elements.
width and height
The
width and height of an element’s content area can be set with the
width and
height properties. These two properties can be assigned with either a length or a percentage value, where the percentage is relative to the parent element’s dimensions.
width | height : auto | <length> | <percentage>
A block element normally stretches out to the edges of its container. In contrast, the element’s ...