Copyright © tutorialspoint.com
The padding-left property sets the width of the padding on the left of an element.
All the HTML elements
object.style.paddingLeft="10px;"; |
Here is the example:
<p style="padding-left: 15px; border:1px solid black;"> This is a paragraph with a specified left padding </p> <p style="padding-left: 15%; border:1px solid black;"> This is another paragraph with a specified left padding in percent </p> |
This will produce following result:
This is a paragraph with a specified left padding This is another paragraph with a specified left padding in percent |
To Become more comfortable - Do Online Practice
Copyright © tutorialspoint.com