Copyright © tutorialspoint.com

CSS - padding-bottom

previous next


Description:

The padding-bottom property sets the width of the padding on the bottom of an element.

Possible Values:

Applies to:

All the HTML elements

DOM Syntax:

object.style.paddingBottom="10px;";

Example:

Here is the example:

<p style="padding-bottom: 15px; border:1px solid black;">
This is a paragraph with a specified bottom padding
</p>

<p style="padding-bottom: 5%; border:1px solid black;">
This is another paragraph with a specified bottom padding in percent
</p>

This will produce following result:

This is a paragraph with a specified bottom padding

This is another paragraph with a specified bottom padding in percent

To Become more comfortable - Do Online Practice


previous next

Copyright © tutorialspoint.com