CSS Tutorial

Setting Margins for Each Side

margin-top
margin-right
margin-bottom
margin-left

<!DOCTYPE html>
<title>Example</title>
<style>
  p {
    background: gold;
  }
  .left-margin {
    margin-left: 60px;
  }
</style>
<p class="left-margin">
    This text has a left margin of 60 pixels.
</p>
<p>
    This text has no left margin set.
</p>