Propriedade de pontuação suspensa CSS
Exemplo
Coloque um sinal de pontuação (se houver) fora da borda inicial da primeira linha no elemento <p>:
p
{
hanging-punctuation: first;
}
Definição e uso
A hanging-punctuation
propriedade especifica se um sinal de pontuação pode ser colocado fora da caixa de linha no início ou no final de uma linha completa de texto.
Valor padrão: | Nenhum |
---|---|
Herdado: | sim |
Animavel: | não. Leia sobre animáveis |
Versão: | CSS3 |
Sintaxe JavaScript: | objeto .style.hangingPunctuation="first" |
Suporte ao navegador
Nenhum dos principais navegadores oferece suporte à propriedade de pontuação suspensa.
Property | |||||
---|---|---|---|---|---|
hanging-punctuation | Not supported | Not supported | Not supported | 10+ | Not supported |
Sintaxe CSS
hanging-punctuation: none|first|last|allow-end|force-end|initial|inherit;
Valores de propriedade
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 |