Want to share your CSS expertise with others? Apply to the MDN Fellowship by April 1! http://mzl.la/MDNFellowship

mozilla

Revision 24544 of word-spacing

  • Revision slug: CSS/word-spacing
  • Revision title: word-spacing
  • Revision id: 24544
  • Created:
  • Creator: Mgjbot
  • Is current revision? No
  • Comment robot Adding: [[pl:CSS:word-spacing]] <<langbot>>

Revision Content

{{ CSSRef() }}

Summary

The word spacing CSS property specifies the spacing between words in the element's text content. One to three values may be specified to indicate minimum, maximum, and optimal spacing between words.

  • {{ Xref_cssinitial() }}: {{ Cssxref("normal") }}
  • Applies to: all elements
  • {{ Xref_cssinherited() }}: yes
  • Percentages: refers to width of space (U+0020) glyph
  • Media: {{ Xref_cssvisual() }}
  • {{ Xref_csscomputed() }}: 'normal' or computed value or percentage

Syntax

word-spacing: [ normal | <length>  | <percentage> ] {1,3} 

Values

normal 
{{ Xref_csslength() }}  
{{ Xref_csspercentage() }}  

Examples

{{ CSSRefExampleLink("word-spacing") }} {{ Fixeg() }}

p {
  word-spacing: 1em 3em 2em;
}

Notes

Specifications

Browser compatibility

{{ Fixbrowser() }}

Browser Lowest Version
Internet Explorer ?
Firefox ?
Netscape ?
Opera ?
Safari ?


See also

{{ CSS_Reference:Text() }}

uncomment as required {{ mediawiki.internal('Category:NeedsContent', "en") }} {{ mediawiki.internal('Category:NeedsAttention', "en") }} {{ mediawiki.internal('Category:NeedsExample', "en") }} {{ mediawiki.internal('Category:NeedsImageCleanup', "en") }} {{ mediawiki.internal('Category:NeedsMarkupWork', "en") }} {{ mediawiki.internal('Category:NeedsRewrite', "en") }} {{ mediawiki.internal('Category:NeedsTechnicalReview', "en") }} {{ mediawiki.internal('Category:NeedsEditorialReview', "en") }} {{ mediawiki.internal('Category:NeedsUpdate', "en") }}

{{ languages( { "pl": "pl/CSS/word-spacing" } ) }}

Revision Source

<p> {{ CSSRef() }}
</p>
<h3 name="Summary"> Summary </h3>
<p>The word spacing CSS property specifies the spacing between words in the element's text content. One to three values may be specified to indicate minimum, maximum, and optimal spacing between words. </p>
<ul><li> {{ Xref_cssinitial() }}: {{ Cssxref("normal") }}
</li><li> Applies to: all elements </li><li> {{ Xref_cssinherited() }}: yes
</li><li> Percentages: refers to width of space (U+0020) glyph
</li><li> Media: {{ Xref_cssvisual() }}
</li><li> {{ Xref_csscomputed() }}: 'normal' or computed value or percentage
</li></ul>
<h3 name="Syntax"> Syntax </h3>
<pre class="eval">word-spacing: [ normal | &lt;length&gt;  | &lt;percentage&gt; ] {1,3} 
</pre>
<h3 name="Values"> Values </h3>
<dl><dt>normal </dt><dd>
</dd><dt>{{ Xref_csslength() }}  </dt><dd>
</dd><dt>{{ Xref_csspercentage() }}  </dt><dd>
</dd></dl>
<h3 name="Examples"> Examples </h3>
<p>{{ CSSRefExampleLink("word-spacing") }} {{ Fixeg() }}
</p>
<pre class="eval">p {
  word-spacing: 1em 3em 2em;
}
</pre>
<h3 name="Notes"> Notes </h3>
<h3 name="Specifications"> Specifications </h3>
<ul><li> <a class="external" href="http://www.w3.org/TR/CSS21/text.html#propdef-word-spacing">W3C Cascading Style Sheets, level 2 revision 1</a> </li><li> <a class="external" href="http://www.w3.org/TR/CSS1#word-spacing">W3C Cascading Style Sheets, level 1</a> (secondary)
</li><li> <a class="external" href="http://www.w3.org/TR/css3-text/#word-spacing">W3C Cascading Style Sheets, level 3</a>
</li></ul>
<h3 name="Browser_compatibility"> Browser compatibility </h3>
<p>{{ Fixbrowser() }}
</p>
<table class="standard-table"> <tbody><tr> <th>Browser</th> <th>Lowest Version</th> </tr> <tr> <td>Internet Explorer</td> <td>?</td> </tr> <tr> <td>Firefox</td> <td>?</td> </tr> <tr> <td>Netscape</td> <td>?</td> </tr> <tr> <td>Opera</td> <td>?</td> </tr> <tr> <td>Safari</td> <td>?</td> </tr>
</tbody></table>
<p><br>
</p>
<h3 name="See_also"> See also </h3>
<p>{{ CSS_Reference:Text() }}
</p><p><span class="comment">uncomment as required {{ mediawiki.internal('Category:NeedsContent', "en") }} {{ mediawiki.internal('Category:NeedsAttention', "en") }} {{ mediawiki.internal('Category:NeedsExample', "en") }} {{ mediawiki.internal('Category:NeedsImageCleanup', "en") }} {{ mediawiki.internal('Category:NeedsMarkupWork', "en") }} {{ mediawiki.internal('Category:NeedsRewrite', "en") }} {{ mediawiki.internal('Category:NeedsTechnicalReview', "en") }} {{ mediawiki.internal('Category:NeedsEditorialReview', "en") }} {{ mediawiki.internal('Category:NeedsUpdate', "en") }}</span>
</p>
<div class="noinclude">
</div>
{{ languages( { "pl": "pl/CSS/word-spacing" } ) }}
Revert to this revision