property
text-indent — CSS reference
Offsets the inline start of the first formatted line by default. Initial zero and inherited. Percentages use containing block inline size. Optional modifiers need separate support checks.
Formal Syntax & Structure
css syntaxcss
<length-percentage> && hanging? && each-line?Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS text lab</title><style>body {margin:0} .sample {background:#dcebe9;color:#182e32}
#a{text-indent:24px}</style><body><p id="a">Design readable interfaces with CSS.</p><p lang="fa" dir="rtl">متن فارسی برای آزمایش چیدمان</p></body></html>