Propiedad de puntuación colgante de CSS
Ejemplo
Coloque un signo de puntuación (si lo hay) fuera del borde de inicio de la primera línea en el elemento <p>:
p
{
hanging-punctuation: first;
}
Definición y uso
La hanging-punctuation
propiedad especifica si se puede colocar un signo de puntuación fuera del cuadro de línea al principio o al final de una línea completa de texto.
Valor por defecto: | ninguna |
---|---|
Heredado: | sí |
Animable: | No. Leer sobre animable |
Versión: | CSS3 |
Sintaxis de JavaScript: | objeto .style.hangingPunctuation="primero" |
Compatibilidad con navegador
Ninguno de los principales navegadores admite la propiedad de puntuación colgante.
Property | |||||
---|---|---|---|---|---|
hanging-punctuation | Not supported | Not supported | Not supported | 10+ | Not supported |
Sintaxis CSS
hanging-punctuation: none|first|last|allow-end|force-end|initial|inherit;
Valores de propiedad
Value | Description |
---|---|
none | No punctuation mark may be placed outside the line box at the start or at the end of a full line of text |
first | Punctuation may hang outside the start edge of the first line |
last | Punctuation may hang outside the end edge of the last line |
allow-end | Punctuation may hang outside the end edge of all lines if the punctuation does not otherwise fit prior to justification |
force-end | Punctuation may hang outside the end edge of all lines. If justification is enabled on this line, then it will force the punctuation to hang |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |