Computer >> Hướng Dẫn Máy Tính >  >> Lập Trình >> CSS

Chỉ định padding-bottom cho element bằng CSS

Thuộc tính padding-bottom đặt đệm dưới. Giá trị: length hoặc %.

Ví dụ

<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>