What is Width in CSS?
In cascading style sheets (CSS) the width of an element refers to the width of the contents of the element. It does not refer to the overal visible width (including padding and margins).
Source...