margin Demo

taking a look at setting the margin yourself...

A paragraph with 20px margin

...notice how you can...

a paragraph with 5px margin on the left

...set the margin in different ways!

a paragraph centered using margin: auto

Please note the last example requires a little extra work in Microsoft Internet Explorer. This is covered in a later chapter.