The width
property defines the width of an element. The width of an element does not include padding, borders, and margins.
width: value | auto;
.mydiv{
width: 100px;
border:1px solid red;
}
value: sets the provided value as the width of an element.
auto: automatically sets the width to display the element’s content.