Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<head>
<style>
p.ex1 {
  border: 1px solid red; 
  padding-right: 2em;
}
</style>
</head>
<body>
<h1>The padding-right Property</h1>
<p class="ex1">A paragraph with a 2 em right 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>
<!-- Mirrored from www.w3schools.com/cssref/tryit.php?filename=trycss_padding-right3 by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 Dec 2022 17:38:01 GMT -->
</html>