Padding in DHTML

Padding around an Element

Unlike margins which are defined around an entire page padding is defined for a specific element on a page.

P { padding: 10px 5px 35% 40px; }

Padding on a Side

Set the padding on the sides of an element individually.

.left { padding-left: 100px; }
.right { padding-right: 150px; }