Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<head>
<style>
p.ex1 {
  border: 1px solid red; 
  padding-top: 10%;
}
</style>
</head>
<body>
<h1>The padding-top Property</h1>
<p class="ex1">A paragraph with a 10% top padding. The percentage is based on the width of the containing element.</p>
</body>
</html>