CSS Width

To define the width of an element, the CSS width property is used. The width is specified for the area inside the padding, border, and margin of an element. CSS width Values: Value Uses auto To calculate the width. length To specify the width in px, cm, etc.