CSS Attributes: Font and Text

This section contains a list of Cascading Style Sheets (CSS) properties that apply to font styles and text rendering.

Attributes/Properties

content

Sets or retrieves generated content to insert before or after an element.

counterIncrement

Sets or retrieves a list of counters to increment.

counterReset

Sets or retrieves a list of counters to create or reset to zero.

direction

Sets or retrieves the reading order of the object.

font

Sets or retrieves a combination of separate font properties of the object. Alternatively, sets or retrieves one or more of six user-preference fonts.

fontFamily

Sets or retrieves the name of the font used for text in the object.

fontSize

Sets or retrieves a value that indicates the font size used for text in the object.

fontStyle

Sets or retrieves the font style of the object as italic, normal, or oblique.

fontVariant

Sets or retrieves whether the text of the object is in small capital letters.

fontWeight

Gets the numeric weight of the font of the object.

fontWeight

Sets or retrieves the weight of the font of the object.

imeMode

Sets or retrieves the state of an Input Method Editor (IME).

layoutFlow

Sets or retrieves the direction and flow of the content in the object.

layoutGrid

Sets or retrieves the composite document grid properties that specify the layout of text characters.

layoutGridChar

Sets or retrieves the size of the character grid used for rendering the text content of an element.

layoutGridLine

Sets or retrieves the gridline value used for rendering the text content of an element.

layoutGridMode

Sets or retrieves whether the text layout grid uses two dimensions.

layoutGridType

Sets or retrieves the type of grid used for rendering the text content of an element.

letterSpacing

Sets or retrieves the amount of additional space between letters in the object.

lineBreak

Sets or retrieves line-breaking rules for text in selected languages such as Japanese, Chinese, and Korean.

lineHeight

Sets or retrieves the distance between lines in the object.

quotes

Sets or retrieves the pairs of strings to be used as quotes in generated content.

rubyAlign

Sets or retrieves the position of the ruby text specified by the rt object.

rubyOverhang

Sets or retrieves the position of the ruby text specified by the rt object.

rubyPosition

Sets or retrieves the position of the ruby text specified by the rt object.

textAlign

Sets or retrieves whether the text in the object is left-aligned, right-aligned, centered, or justified.

textAlignLast

Sets or retrieves how to align the last line or only line of text in the object.

textAutospace

Sets or retrieves the autospacing and narrow space width adjustment of text.

textDecoration

Sets or retrieves a value that indicates whether the text in the object has blink, line-through, overline, or underline decorations.

textDecorationBlink

Sets or retrieves a Boolean value that indicates whether the object's textDecoration property has a value of "blink."

textDecorationLineThrough

Sets or retrieves a Boolean value indicating whether the text in the object has a line drawn through it.

textDecorationNone

Sets or retrieves the Boolean value indicating whether the textDecoration property for the object has been set to none.

textDecorationOverline

Sets or retrieves a Boolean value indicating whether the text in the object has a line drawn over it.

textDecorationUnderline

Sets or retrieves whether the text in the object is underlined.

textIndent

Sets or retrieves the indentation of the first line of text in the object.

textJustify

Sets or retrieves the type of alignment used to justify text in the object.

textKashidaSpace

Sets or retrieves the ratio of kashida expansion to white space expansion when justifying lines of text in the object.

textOverflow

Sets or retrieves a value that indicates whether to render ellipses(...) to indicate text overflow.

textTransform

Sets or retrieves the rendering of the text in the object.

textUnderlinePosition

Sets or retrieves the position of the underline decoration that is set through the textDecoration property of the object.

unicodeBidi

Sets or retrieves the level of embedding with respect to the bidirectional algorithm.

verticalAlign

Sets or retrieves the vertical alignment of the object.

whiteSpace

Sets or retrieves a value that indicates whether lines are automatically broken inside the object.

wordBreak

Sets or retrieves line-breaking behavior within words, particularly where multiple languages appear in the object.

wordSpacing

Sets or retrieves the amount of additional space between words in the object.

wordWrap

Sets or retrieves whether to break words when the content exceeds the boundaries of its container.

writingMode

Sets or retrieves the direction and flow of the content in the object.

Tags :


Page view tracker