How do I reduce characters' width of Arial-like fonts with CSS?
+3
A:
You can't reduce character width, but you can reduce letter-spacing.
span {
letter-spacing: 0px;
}
Mike Robinson
2009-07-21 19:31:43
also takes decimal fractions (e.g. 0.2px) and negatives (e.g. -1px, -0.2px), so you can get some pretty fine-grained control.
Val
2009-07-22 21:56:07
oh, and different units, so it can be size-independent: -1%, -0.01em -- handy if the text in question varies in size.
Val
2009-07-22 21:59:45
+2
A:
Streching a font will be possible with the font-stretch
property of CSS 3.
Gumbo
2009-07-21 19:34:48