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
Release: 2023-09-11 14:01:02
forward
891 people have browsed it

使用 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>
Copy after login

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!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template