asp.net.ph

Skip Navigation LinksHome > Abakada: Back to Basics > Language References > CSS Properties > Text Properties

CSS Text Properties


The CSS text module defines how to perform text manipulation.

PropertyDescription
hanging-punctuationSpecifies whether a punctuation mark should hang at the start or end of a line of text.
hyphenate-characterSets the character (or string) used at the end of a line before a hyphenation break.
hyphenate-limit-charsSpecifies the minimum word length to allow hyphenation of words, and the minimum number of characters before and after the hyphen.
hyphensSpecifies how words should be hyphenated when text wraps across multiple lines.
letter-spacingSets the horizontal spacing behavior between text characters.
line-breakSets how to break lines of Chinese, Japanese, or Korean (CJK) text when working with punctuation and symbols.
line-heightSets the height of a line box in horizontal writing modes.
overflow-wrapSets whether the browser should insert line breaks to prevent text from overflowing its line box.
tab-sizeUsed to customize the width of tab characters.
text-alignSets the horizontal alignment of inline-level content.
text-align-lastSets how the last line is aligned.
text-decorationShorthand notation for setting all text decoration properties in a single declaration.
text-decoration-colorSets the color of decorations added to text.
text-decoration-lineSets the kind of decoration that is used on text.
text-decoration-skip-inkSpecifies how overlines and underlines are drawn when they pass over glyph ascenders and descenders.
text-decoration-styleSets the style of the decoration line applied to text.
text-decoration-thicknessSets the stroke thickness of the decoration line that is used on text.
text-emphasisShorthand notation for setting all emphasis marks properties in a single declaration.
text-emphasis-colorSets the color of emphasis marks.
text-emphasis-positionSets where emphasis marks are drawn.
text-emphasis-styleSets the appearance of emphasis marks.
text-indentSets the indentation before on the first line of text in a block.
text-justifySets what type of justification should be applied to text.
text-orientationSets the orientation of text characters in a line.
text-overflowSets how hidden overflow content is signaled to users.
text-renderingProvides information to the rendering engine about what to optimize for when rendering text.
text-shadowAdds shadows to text.
text-transformSpecifies how to capitalize an element’s text.
text-underline-offsetSets the offset distance of an underline from its original position.
text-underline-positionSpecifies the position of the underline.
text-wrapShorthand notation for controling how text inside an element is wrapped.
text-wrap-modeControls whether the text inside an element is wrapped.
text-wrap-styleControls how text inside an element is wrapped.
white-spaceSets how white space inside an element is handled.
white-space-collapseControls how white space inside an element is collapsed.
word-breakSets whether line breaks appear wherever the text would otherwise overflow its content box.
word-spacingSets the length of space between words and between tags.

External reference: CSS Text Module Level 4

See Also

Style Sheet Basics   Using StyleSheets   W3C Cascading Style Sheet Specification



Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note