freeCodeCamp/guide/russian/css/text-indent/index.md

28 lines
960 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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