Computer >> Computer tutorials >  >> Programming >> Javascript

CSS padding-right property


The padding-right specifies the right padding of an element. It sets the right padding of an element. This can take a value in terms of length of %.

<html>
   <head>
   </head>
   <body>
      <p style = "padding-right: 10px; border:1px solid blue;">
         This is a paragraph with a specified right padding
      </p>
      <p style = "padding-right: 10%; border:1px solid blue;">
         This is another paragraph with a specified right padding in percent
      </p>
   </body>
</html>