Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<head>
<style>
p.ex1 {
  border: 1px solid red; 
  padding-left: 2em;
}
</style>
</head>
<body>
<h1>The padding-left Property</h1>
<p class="ex1">A paragraph with a 2 em left padding. The em unit is relative to the font-size of the element (2em means 2 times the size of the current font).</p>
</body>
</html>