Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

CSS3 punctuation-trim property

CSS3 punctuation-trim property

Example

Place opening punctuation at the start of each line in a p element:

p

{

    punctuation-trim:start;

}


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

No major browser supports the punctuation-trim property.


Property definition and usage

The punctuation-trim property specifies whether punctuation should be trimmed when it appears at the start or end of a line, or is adjacent to another full-width punctuation character.

Default value: none
Inherited: yes
Version: CSS3
JavaScript syntax: object.style.punctuationTrim="start"

Syntax

punctuation-trim: none|start|end|allow-end|adjacent;

Value Description
none Do not trim opening or closing punctuation
start Place opening punctuation at the start of each line
end Trim closing punctuation at the end of each line
allow-end If there is no other reason preventing it, trim the closing punctuation at the end of each line.
adjacent If the previously adjacent character of the opening punctuation to be trimmed is a full-width opening, middle, or closing punctuation mark, or an ideographic space, trim the closing punctuation if the next adjacent character is a full-width closing or middle punctuation mark, or an ideographic space.