Click to Rate and Give Feedback
MSDN
MSDN Library
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

Gets or sets generated content to insert before or after an element.

counterIncrement

Gets or sets a list of counters to increment.

counterReset

Gets or sets a list of counters to create or reset to zero.

direction

Gets or sets 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

Gets or sets the name of the font used for text in the object.

fontSize

Gets or sets a value that indicates the font size used for text in the object.

fontSizeAdjust

Gets or sets a value that specifies an aspect value for an element that will effectively preserve the x-height of the first choice font, whether it is substituted or not.

fontStretch

Gets or sets a value that indicates a normal, condensed, or expanded face of a font family.

fontStyle

Gets or sets the font style of the object as italic, normal, or oblique.

fontVariant

Gets or sets whether the text of the object is in small capital letters.

fontWeight

Gets the numeric weight of the font of the object.

fontWeight

Gets or sets the weight of the font of the object.

imeMode

Gets or sets the state of an Input Method Editor (IME).

layoutFlow

Gets or sets 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

Gets or sets the size of the character grid used for rendering the text content of an element.

layoutGridLine

Gets or sets the gridline value used for rendering the text content of an element.

layoutGridMode

Gets or sets whether the text layout grid uses two dimensions.

layoutGridType

Gets or sets the type of grid used for rendering the text content of an element.

letterSpacing

Gets or sets the amount of additional space between letters in the object.

lineBreak

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

lineHeight

Gets or sets the distance between lines in the object.

quotes

Gets or sets the pairs of strings to be used as quotes in generated content.

rubyAlign

Gets or sets the position of the ruby text specified by the rt object.

rubyOverhang

Gets or sets the position of the ruby text specified by the rt object.

rubyPosition

Gets or sets the position of the ruby text specified by the rt object.

textAlign

Gets or sets whether the text in the object is left-aligned, right-aligned, centered, or justified.

textAlignLast

Gets or sets how to align the last line or only line of text in the object.

textAutospace

Gets or sets the autospacing and narrow space width adjustment of text.

textDecoration

Gets or sets 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

Gets or sets the indentation of the first line of text in the object.

textJustify

Gets or sets the type of alignment used to justify text in the object.

textKashidaSpace

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

textOverflow

Gets or sets a value that indicates whether to render ellipses(...) to indicate text overflow.

textTransform

Gets or sets the rendering of the text in the object.

textUnderlinePosition

Gets or sets the position of the underline decoration that is set through the textDecoration property of the object.

unicodeBidi

Gets or sets the level of embedding with respect to the bidirectional algorithm.

verticalAlign

Gets or sets the vertical alignment of the object.

whiteSpace

Gets or sets a value that indicates whether lines are automatically broken inside the object.

wordBreak

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

wordSpacing

Gets or sets the amount of additional space between words in the object.

wordWrap

Gets or sets whether to break words when the content exceeds the boundaries of its container.

writingMode

Gets or sets the direction and flow of the content in the object.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker