Padding vs height and width - why does padding effect the size of an elements background color?

Why does padding effect the size of an elements background color?

If it’s increasing the size of the actual element, than its just another way of effecting the elements height and width.

So, is padding a way of increasing an elements height and/or width, without increasing the size of the content within it?