Computer >> Computer tutorials >  >> Programming >> CSS

Specify the bottom padding of an element with CSS


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

Example

 <html>
    <head>
    </head>
    <body>
       <p style = "padding-bottom: 20px; border:1px solid red;">
          This is demo content.
       </p>
       <p style = "padding-bottom: 20%; border:1px solid red;">
          This is another demo content.
       </p>
    </body>
</html>