<?xml version="1.0" encoding="utf-8"?>

CSS padding property

CSS padding property

If padding values are equal for all 4 sides, the syntax is simple:

padding: the value in px, cm, pt, etc.

Of course, if you plan on adjusting padding later, you can write down all 4 values separated by gaps.

Top contributors

Wayne Buckhanan

Topics

Share

Improve your UX & Product skills with interactive courses that actually work