0 out of 1 rated this helpful - Rate this topic

Pseudo-elements

Expression Studio 4.0

Pseudo-elements are used to add special effects to a specific element or to reference an element that does not exist in the source document, such as generated content.

Pseudo-elements

A pseudo-element is denoted by the use of two colons, followed by the pseudo-element name.

::after

Defines generated content that appears after an element.

::before

Defines generated content that appears before an element.

::selection

Applies one or more styles to any text on the page that the user has highlighted.

::first-letter

Applies one or more styles to the first letter of the object.

::first-line

Applies one or more styles to the first line of the object.

See also

Send feedback about this topic to Microsoft. © 2011 Microsoft Corporation. All rights reserved.
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.