javascript STYLE letterSpacing
@March 15, 2008, 1:22 a.m.
letterSpacing | Firefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 2 |
Read/Write | |
Specifies the spacing between characters within an element. Browsers normally define the character spacing based on font definitions and operating system font rendering. Assigning a negative value tightens the spacing, but be sure to test the effect on the selected font for readability on different operating systems. |
|
Example | |
document.body.style.letterSpacing = "1.1em"; |
|
Value | |
A string of a length value (with unit of measure) or normal. The best results are achieved by using units that are based on the rendered font size (em and ex). A setting of normal is how the browser sets the letters without any intervention. |
|
Default | |
normal |
Permanent URL:
http://javascript.gakaa.com/style-letterspacing.aspx
Powered by Linode.