Home >Web Front-end >CSS Tutorial >CSS padding-left property
padding-left Specifies the left padding of the element. It sets the left padding of the element. This can take a value expressed as % length.
<html> <head> </head> <body> <p style = "padding-left: 10px; border:1px solid blue;"> This is a paragraph with a specified left padding </p> <p style = "padding-left: 10%; border:1px solid blue;"> This is another paragraph with a specified left padding in percent </p> </body> </html>
The above is the detailed content of CSS padding-left property. For more information, please follow other related articles on the PHP Chinese website!