Home >Web Front-end >CSS Tutorial >CSS padding-left property

CSS padding-left property

王林
王林forward
2023-08-27 18:13:151049browse

CSS padding-left 属性

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.

Example

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

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete