quotes

  • Revision slug: CSS/quotes
  • Revision title: quotes
  • Revision id: 25283
  • Created:
  • Creator: Jürgen Jeka
  • Is current revision? No
  • Comment 1 words added, 6 words removed

Revision Content

{{ CSSRef() }}

Summary

The quotes property indicates how user agents should render quotation marks.

  • {{ Xref_cssinitial() }}: user agent specific
  • Applies to: all elements
  • {{ Xref_cssinherited() }}: yes
  • Percentages: n/a
  • Media: {{ Xref_cssvisual() }}
  • {{ Xref_csscomputed() }}: as specified

Syntax

quotes:  [<string> <string>]+ | none | inherit

Values

none
The open-quote and close-quote values of the content property produce no quotation marks.
[<string> <string>]+
One or more pairs of {{ Xref_cssstring() }} values for 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.

Examples

q { quotes: '"' '"' "'" "'" }
q:before { content: open-quote }
q:after  { content: close-quote }

Notes

{{ fx_minversion_note("3.5", "Starting in Firefox 3.5, the initial value of the quotes property can be read using -moz-initial.  This wasn't possible in earlier versions of Firefox.") }}

Specifications

Browser compatibility

Browser Lowest Version
Internet Explorer 8.0
Firefox 1.5
Opera 4.0
Safari n/a

See also

{{ Cssxref("content") }}

Revision Source

<p>{{ CSSRef() }}</p>
<h3 name="Summary">Summary</h3>
<p>The<code> quotes </code>property indicates how user agents should render quotation marks.</p>
<ul> <li>{{ Xref_cssinitial() }}: user agent specific</li> <li>Applies to: all elements</li> <li>{{ Xref_cssinherited() }}: yes</li> <li>Percentages: n/a</li> <li>Media: {{ Xref_cssvisual() }}</li> <li>{{ Xref_csscomputed() }}: as specified</li>
</ul>
<h3 name="Syntax">Syntax</h3>
<pre class="eval">quotes:  [&lt;string&gt; &lt;string&gt;]+ | none | inherit
</pre>
<h3 name="Values">Values</h3>
<dl><dt>none</dt><dd>The<code> open-quote </code>and<code> close-quote </code>values of the content property produce no quotation marks.</dd><dt>[&lt;string&gt; &lt;string&gt;]+</dt><dd>One or more pairs of {{ Xref_cssstring() }} values for<code> open-quote </code>and<code> close-quote</code>. 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.</dd></dl>
<h3 name="Examples">Examples</h3>
<pre class="eval">q { quotes: '"' '"' "'" "'" }
q:before { content: open-quote }
q:after  { content: close-quote }
</pre>
<h3 name="Notes">Notes</h3>
<p>{{ fx_minversion_note("3.5", "Starting in Firefox 3.5, the initial value of the quotes property can be read using<code> -moz-<a href="/en/CSS/initial" title="en/CSS/initial">initial</a></code>.  This wasn't possible in earlier versions of Firefox.") }}</p><h3 name="Specifications">Specifications</h3>
<ul> <li><a class="external" href="http://www.w3.org/TR/REC-CSS2/generate.html#quotes">CSS 2.1 Generated content #quotes </a></li> <li><a class="external" href="http://www.w3.org/TR/css3-content/#quotes">CSS 3 Generated content #quotes</a></li>
</ul>
<h3 name="Browser_compatibility">Browser compatibility</h3>
<table class="standard-table"> <tbody> <tr> <th>Browser</th> <th>Lowest Version</th> </tr> <tr> <td>Internet Explorer</td> <td>8.0</td> </tr> <tr> <td>Firefox</td> <td>1.5</td> </tr> <tr> <td>Opera</td> <td>4.0</td> </tr> <tr> <td>Safari</td> <td>n/a</td> </tr> </tbody>
</table>
<h3 name="See_also">See also</h3>
<p>{{ Cssxref("content") }}</p>
Revert to this revision