O'Reilly logo

CSS Pocket Reference, 4th Edition by Eric A. Meyer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

quotes

Values:

[<string> <string>]+ | none

Initial value:

User agent–dependent

Applies to:

All elements (CSS2); all elements, ::before, ::after, ::alternate, ::marker, ::line-marker, margin areas, and @footnote areas (CSS3)

Inherited:

Yes

Computed value:

Same as declared value

Description:

Defines the quotation pattern used with quotes and nested quotes. The actual quote marks are inserted via the content property’s open-quote and close-quote values. Note that several of the pseudo-elements to which quotes applies, such as ::alternate, ::marker, and ::line-marker, are new in CSS3 and may not be supported.

Example:

q {quotes: '\201C' '\201D' '\2018' '\2019';}

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required