CSS width property is used to set the width of HTML elements. You can also use min-width and max-width properties, these properties override the width property.
Width Property
We can change the width of an HTML element by using CSS width property. We normally use px, vh, and % unit for width property {width : 10px;}
property value
SYNTAX
width: auto | value | initial | inherit;
Note:
If we are designing a relative layout then you can use width % unit.
The max-width and min-width properties override the CSS width property.