Basic CSS - Adjust the Padding of an Element

Can anyone explain why is padding used? what does it do?

It is the space between an element content and its border. Its kinda like margin, while margin creates space around, padding creates space within. So it is used for spacing purposes

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.