28 lines
679 B
Markdown
28 lines
679 B
Markdown
---
|
|
title: Text Indent
|
|
localeTitle: Guion de texto
|
|
---
|
|
## Guion de texto
|
|
|
|
Esta propiedad CSS crea una sangría de la primera línea en un bloque de texto.
|
|
|
|
### Valores:
|
|
|
|
La propiedad de `text-indent` se puede especificar utilizando `%` , `px` , `em` o unidades de medida, como `cm` y `in` .
|
|
|
|
Por ejemplo:
|
|
|
|
* `text-indent: 20%;`
|
|
* `text-indent: 15px;`
|
|
* `text-indent: 5em;`
|
|
* `text-indent: 2in;`
|
|
|
|
La propiedad de `text-indent` también puede heredar de su elemento padre usando el valor `inherit` .
|
|
|
|
Por ejemplo:
|
|
|
|
* `text-indent: inherit;`
|
|
|
|
#### Más información:
|
|
|
|
* [MDN Web Docs - sangría de texto CSS](https://developer.mozilla.org/en-US/docs/Web/CSS/text-indent) |