CSS padding-left property

王林
Release: 2023-08-27 18:13:15
forward
861 people have browsed it

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>
Copy after login

The above is the detailed content of CSS padding-left property. For more information, please follow other related articles on the PHP Chinese website!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!