CSS width property

CSS width

CSS width property is used to set the width of an element.

In default, the content areas width is set.

min-width and max-width properties overrides the width property.

Example

Try Yourself