Setting margins

H2 { margin-left: 50px }

H3 { margin-left: 5em }

Properties: margin-top, margin-right, margin-bottom, margin-left

On this page, we have set H2's left margin to 50 pixels, and H3's left margin to 5 em spaces. (The necessary CSS markup is displayed as the text of the elements.)

On the following pages, we will display CSS markup as the text of the element which is having its properties set, just as we did on this page, so you can read the CSS markup and see its result in one glance./P>