CSS Padding

CSS Padding

Padding creates space around an element's content, inside borders.

Example

div { padding: 10px; }

Click on the "Try it Yourself" button to see how it works.

Try it Yourself »