Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<head>
<style>
p.ex1 {
  border: 1px solid red; 
  padding: 35px 70px;
}
</style>
</head>
<body>
<h1>The padding Property</h1>
<p class="ex1">This paragraph has a 35 pixels padding for top and bottom, and a 70 pixels padding for right and left.</p>
<p><strong>Note:</strong> Padding creates extra space within an element, while margin creates extra space around an element!</p>
</body>
</html>