p { margin-top: 10px; margin-bottom: 10px; margin-right: 15px; margin-left: 8px; } /* You can also write the above code in one line */ p{ margin: 10px 15px 10px 8px; /* top | right | bottom | left */ }