CSS Max width And Height
The CSS max width and height properties are used to set max width and height respectively. The CSS max-width and max-height are used to set the maximum width and maximum height respectively.
CSS Width And Height Property Value
CSS width and height have the following values.
-
auto-This is the default value. The browser calculates the height and width. -
length- Defines the height/width in px, cm etc. -
%- Defines the height/width in percent of the containing block. -
initial- Sets the height/width to its default value. -
inherit- The height/width will be inherited from its parent value.
Note: The CSS width and height is a box model property that is applied to the HTML element. The block-level element takes all available widths.