The margin property specifies all four margins at once:
/* top right bottom left */ P { margin: 1em 2em 3em 2em } /* set all four margins */ H1 { margin: 50px }
You can set all four margins at once using the margin property. You can set the margins to four separate values by specifying them in the order top right bottom left, or you can set all four margins to the same value by specifying a single value.