CSS Tutorial

Set the Same Padding on all Sides

<!DOCTYPE html>
<title>Example</title>
<style>
  div {
    background: gold;
    padding: 20px;
  }
  div > p {
    background: white;
  }
</style>
<div>
  <p>
    Padding of 20 pixels on all four sides.
  </p>
</div>