Sizing
5.2
Lesson

Width

The width property is used to set the width of an element. Width can be defined in percentage % or pixels px.

Percentage width is calculated based on the width of its immediate parent element.