CSS padding-right property

JavascriptWeb DevelopmentFront End Scripts

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>
raja
Published on 17-Apr-2018 06:52:21
Advertisements