HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

hanging-punctuation

Description

The hanging-punctuation property for CSS determines whether a punctuation mark, if one is present, hangs and may be placed outside the line box (or in the indent) at the start or at the end of a line of text.

Syntax

CSS

hanging-punctuation: value;

JS

object.style.hangingPunctuation = "value";

Values

<'hanging-punctuation'> = none | [ first || [ force-end | allow-end ] || last ]
none

No punctuation character is made to hang.

first

An opening bracket or quote at the start of the first formatted line of an element hangs.

force-end

A stop or comma at the end of a line hangs.

allow-end

A stop or comma at the end of a line conditionally hangs.

last

A closing bracket or quote at the end of the last formatted line of an element hangs.

Initial

none

Examples

1 · none

2 · first

3 · force-end

4 · allow-end

5 · last

6 · JS