Home >Web Front-end >CSS Tutorial >Specify the bottom padding of an element using CSS

Specify the bottom padding of an element using CSS

PHPz
PHPzforward
2023-09-11 14:01:02912browse

使用 CSS 指定元素的底部填充

padding-bottom Specifies the bottom padding of the element. It sets the bottom padding (space) of the element. This can take a value of length %.

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>

The above is the detailed content of Specify the bottom padding of an element using CSS. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete