How to indent text

Example analysis:

#The text-indent attribute is used to specify the indent of the first line of text in the text block; negative values ​​are allowed, if If the value is negative, indent the first line to the left.

You can set the following values:

●length: Define a fixed indent. Default value: 0.​

● %: Defines the indent based on the percentage of the width of the parent element.

Continuing Learning
||
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>php(php.cn)</title>
<style>
p {text-indent:50px;}
</style>
</head>
<body>
<p>In my younger and more vulnerable years my father gave me some advice that I've been turning over in my
    mind ever since. 'Whenever you feel like criticizing anyone,' he told me, 'just remember that all the
    people in this world haven't had the advantages that you've had.'</p>
</body>
</html>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
submitReset Code
图片放大关闭