# Padding

Space inside an element, between its content and border.

## What is **padding** in CSS?

**Padding** is the space inside an element, between its content and its border.

```css
.button { padding: 10px 20px; }   /* 10px top/bottom, 20px left/right */
```

Level: Novice · [More CSS terms at this level](https://www.ask-codey.com/glossary/subjects/css/novice)

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/padding
