CSS PROPERTIES
Expand All|Collapse All
CSS AT-RULES
SPONSORED LINKS

CSS quotes Property

Topic: CSS3 Properties Reference« Prev|Next »

Description

The quotes CSS property specifies the quotation marks for the embedded quotations. The quotes characters specified for this property are used for the open-quote and close-quote values of the content property.

The following table summarizes the usages context and the version history of this property.

Default value: none
Applies to: All elements
Inherited: Yes
Animatable: No. See animatable properties.
Version: CSS 2, 3

Syntax

The syntax of the property is given with:

quotes [string string]one or more pairs | none | initial | inherit

The example below shows the quotes property in action.

  • q {
  •     quotes: '[' ']' '"' '"';
  • }
  • q:before {
  •     content: open-quote;
  • }
  • q:after {
  •     content: close-quote;
  • }

Property Values

The following table describes the values of this property.

Value Description
none The open-quote and close-quote values of the content property produce no quotation marks. This is default value.
[string string] One or more pairs of string values for the open-quote and close-quote. The first pair represents the outer level of quotation; the second pair is for the first nested level, next pair for third level and so on.
initial Sets this property to its default value.
inherit If specified, the associated element takes the computed value of its parent element quotes property.

Browser Compatibility

The quotes property is supported in all major modern browsers.

Browsers Icon

Basic Support—

  • Firefox 1.5+
  • Google Chrome 11+
  • Internet Explorer 8+
  • Apple Safari (None)
  • Opera 7+
 

Warning:Internet Explorer 7 and earlier versions don't support the quotes property. IE8 supports this property, but requires a valid <!DOCTYPE>.


Further Reading

See tutorial on: CSS Pseudo-elements.

Related properties: content.

 
Close

Your Feedback:

 

We would love to hear from you! Please say something.