CSS Height and Width properties
The Height and Width properties in CSS define the size of the selected element on the web page.
The Height and Width properties in action:
This is a paragraph of 150px height and 300px width.
The output:
This is a paragraph of 300px height and 300px width.
The Min and Max properties:
The Min and Max properties set the maximum or minimum width and height of the selected element.
This is a paragraph of 300px height and 300px width.
The output:
This is a paragraph of 300px min-height and 300px min-width.
If the screen is resized the minimum height and width will be 300px.