28 lines
960 B
Markdown
28 lines
960 B
Markdown
---
|
||
title: Text Indent
|
||
localeTitle: Отступ текста
|
||
---
|
||
## Отступ текста
|
||
|
||
Это свойство CSS создает отступ первой строки в текстовом блоке.
|
||
|
||
### Ценности:
|
||
|
||
Свойство `text-indent` может быть указано с использованием `%` , `px` , `em` или единиц измерения, таких как `cm` и `in` .
|
||
|
||
Например:
|
||
|
||
* `text-indent: 20%;`
|
||
* `text-indent: 15px;`
|
||
* `text-indent: 5em;`
|
||
* `text-indent: 2in;`
|
||
|
||
Свойство `text-indent` также может наследовать от его родительского элемента с использованием значения `inherit` .
|
||
|
||
Например:
|
||
|
||
* `text-indent: inherit;`
|
||
|
||
#### Дополнительная информация:
|
||
|
||
* [MDN Web Docs - текстовый отступ CSS](https://developer.mozilla.org/en-US/docs/Web/CSS/text-indent) |