NOTICE: This website is no longer updated or supported - as such many of the techniques used to build it may seem antiquated in the modern day. It is preserved for historical reasons only.

CLOSE

CSS1 Padding Example

This paragraph of text has padding on the left and right, but not on the top and bottom.

This paragraph has padding, but this time only on the top and bottom.

Be careful when using margins. They don't necessarily apply to the text within the box, but to the box itself.


CLOSE WINDOW | VIEW CODE