The CSS dimension properties allow you to control the height and width of an element.
Set the height of elementsThis example demonstrates how to set the height of different elements.
Set the height of an image using percentThis example demonstrates how to set the height of an element using a percent value.
Set the width of an element using a pixel valueThis example demonstrates how to set the width of an element using a pixel value.
Set the maximum height of an elementThis example demonstrates how to set the maximum height of an element.
Set the maximum width of an element using percentThis example demonstrates how to set the maximum width of an element using a percent value.
Set the minimum height of an elementThis example demonstrates how to set the minimum height of an element.
Set the minimum width of an element using a pixel valueThis example demonstrates how to set the minimum width of an element using a pixel value.
The number in the "CSS" column indicates in which CSS version the property is defined (CSS1 or CSS2).
Your Query was successfully sent!