Difference between revisions of "CSS GUIDE LETTER SPACING"

From CDOT Wiki
Jump to: navigation, search
(Legal Values)
(See Also)
 
(12 intermediate revisions by the same user not shown)
Line 14: Line 14:
  
 
== Legal Values ==
 
== Legal Values ==
 +
<table class="standard-table">
 +
  <tr>
 +
      <th>Value</th>
 +
      <th>Description</th>
 +
  </tr>
 +
  <tr>
 +
      <td>'''normal'''</td>
 +
      <td>                      Defines normal space between characters</td>
 +
  </tr>
  
Value  Description
+
  <tr>
 
+
      <td>'''length'''</td>
'''normal''' - Defines normal space between characters
+
      <td> The following values can be also used to define the letter-spacing distance:  
 
+
cm (centimeter)
'''length''' -  The following values can be also used to define the letter-spacing distance:  
 
                cm (centimeter)
 
 
em  (ems)
 
em  (ems)
 
inch (inches)
 
inch (inches)
Line 27: Line 34:
 
px (pixels)
 
px (pixels)
 
pt (points)
 
pt (points)
 +
</td></tr>
 +
</table>
  
 
== Mozilla Recommended Values ==
 
== Mozilla Recommended Values ==
  
 
== Usage Examples ==
 
== Usage Examples ==
 +
 +
H1    { letter-spacing: 0.1em }
 +
 +
P.note { letter-spacing: -0.1em }
  
 
== Notes ==
 
== Notes ==
 +
 +
Inherited: Yes
 +
 +
Note: Negative values are allowed.
  
 
== Specification Conformance  ==
 
== Specification Conformance  ==
 +
 +
 +
* [http://www.w3.org/TR/CSS1#font-family CSS 1]
  
 
== Browser Compatibility ==
 
== Browser Compatibility ==
Line 45: Line 65:
  
 
== See Also ==
 
== See Also ==
 +
 +
* word-spacing

Latest revision as of 10:47, 4 December 2006

This document is a work in progress and is subject to change.

Summary

This property increase and decreases the space between letters.

Syntax

p { letter-spacing: -0.5px }

p { letter-spacing: 8px }

Legal Values

Value Description
normal Defines normal space between characters
length The following values can be also used to define the letter-spacing distance:

cm (centimeter) em (ems) inch (inches) mm (millimeters) pc (picas) px (pixels) pt (points)

Mozilla Recommended Values

Usage Examples

H1 { letter-spacing: 0.1em }

P.note { letter-spacing: -0.1em }

Notes

Inherited: Yes

Note: Negative values are allowed.

Specification Conformance

Browser Compatibility

  • Internet Explorer
  • Netscape Navigator
  • Opera
  • Firefox
  • Safari

See Also

  • word-spacing