The size properties are used to set the size of the HTML elements.

Size Properties

Widthnumber, autoSets the width of an element.
Heightnumber, autoSets the height of an element.
Box Sizingcontext-box, border-boxDefines how the width and height of an element are calculated: should they include padding and borders, or not.
Min Widthnumber, initialSet the minimum width of an element.
Min Heightnumber, initialSet the minimum height of an element.
Max Widthnumber, noneSet the maximum width of an element.
Max Heightnumber, noneSet the maximum height of an element.
Was this article helpful?

Couldn't Find Your Answer?

Get quality customer support with our professional support team.

Create A Support Ticket
Live Editor