Search
The width property is used to set the width of an element. Width can be defined in percentage % or pixels px.
width
%
px
Percentage width is calculated based on the width of its immediate parent element.